Content originally posted in LPCWare by Marco72 on Mon Nov 21 22:57:32 MST 2011 Using LPCXpresso v4.0.5 [Build 123] [27/06/2011] with a LPC1769 rev b board I encountered a problem when in my code i write this include
#include <malloc.h>
if I switch to newlib the problem disappears.
Follow the last stage of fail build from console window:
Building file: ../src/main.c Invoking: MCU C Compiler arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC17xx -I"C:\Documenti\Progetti\Miei\LPC expresso\USB\Test\CMSISv2p00_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o"src/main.o" "../src/main.c" In file included from ../src/main.c:24:0: c:\nxp\lpcxpresso_4.0.5_123\lpcxpresso\tools\bin\../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/include/malloc.h:4:29: error: no include path in which to search for malloc.h make: *** [src/main.o] Error 1
To understand what happen I made a completely new LPCXpresso empty project using the provided wizard and this is always the behaviour.
Where is my error ? Does malloc.h is supported in Redlib ? Looking at include path I am a bit confused: In project tree I see under the includes branch some .h yellow folders (where path is within lpcxpresso installation include folders) and an other violet folder that is derived from my project setting. How these paths are managed during build process?
Content originally posted in LPCWare by ecw on Tue Nov 22 02:57:28 MST 2011 Ignore it. Use stdlib.h instead. malloc.h is deprecated, and disappearing from many systems. :confused: