lpcware

Error finding the header file

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by akhilpo on Sun Jul 17 19:02:11 MST 2011
When building a project, it is giving me error that the header file (uart.h). could not be found. I had added the driver folder to the current project and uart.h & uart  is present in the current project folder. Also it marked the functions UARTInit() and UARTSend() as implicit declarations. :( The uart example project is open in the the project library.

**** Build of configuration Debug for project uart_comm ****

make all
Building file: ../src/cr_startup_lpc11.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC11xx -I"C:\Users\Akhil\Documents\lpcxpresso_3.6.3_317\workspace\CMSISv1p30_LPC11xx\inc" -O0 -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/cr_startup_lpc11.d" -MT"src/cr_startup_lpc11.d" -o"src/cr_startup_lpc11.o" "../src/cr_startup_lpc11.c"
Finished building: ../src/cr_startup_lpc11.c

Building file: ../src/main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC11xx -I"C:\Users\Akhil\Documents\lpcxpresso_3.6.3_317\workspace\CMSISv1p30_LPC11xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o"src/main.o" "../src/main.c"
../src/main.c:23:18: error: uart.h: No such file or directory
../src/main.c: In function 'main':
../src/main.c:30: warning: implicit declaration of function 'UARTInit'
../src/main.c:32: warning: implicit declaration of function 'UARTSend'
make: *** [src/main.o] Error 1

Outcomes