Hi,I am getting a error while compling

ultracrc.c(126) : C5005 (F) Could not open source file "malloc.h"

  • Unfortunately you don't say which compiler you use. A tag says "HEW compiler", but there is nothing like a HEW compiler. The compiler is for M16C, M32C, R32C, SH, H8, ... .

    You don't have the path to the malloc.h header file listed in the include file option in the compiler.

  • In reply to FrankL:

    compiler is for cpu  SH-3 series

  • In reply to FrankL:

    compiler is for cpu  SH-3 series

  • In reply to vadu:

    How to include the malloc.h in HEW Compiler?

  • In reply to vadu:

    There is no HEW compiler.

    You may be using GNU SH compiler or Renesas/Hitachi SH compiler.

    In the Renesas compiler malloc() is part of stdlib.h. It does not have a malloc.h.

    Also in GNUSH malloc() is part of stdlib.h.

    May be you should use stdlib.h instead of malloc.h

  • In reply to FrankL:

    Thank you..

    another Error came after this

    ultracrc.c(129) :  C5005 (F) Could not open source file "crtdbg.h"

    How to include crtdbg.h in HEW compiler?