Content originally posted in LPCWare by hjetschko on Sun Feb 03 17:13:31 MST 2013
I get a couple of "implicit declaration of function" warnings when I compile my code. I thought that these mean that the compiler cannot resolve a function name and is normally solved by including the correct header file and setting the correct include path. My code works but I am uncomfortable with warnings showing up. Below is the command called and the warnings:
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -I"D:\Projects\svn\Firmware\CMSISv2p00_LPC11xx\inc" -I"D:Projects\svn\Firmware\LaserRanger\src" -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: In function 'main':
../src/main.c:29:2: warning: implicit declaration of function 'GPIOInit' [-Wimplicit-function-declaration]
../src/main.c:31:2: warning: implicit declaration of function 'StartLis500Clock' [-Wimplicit-function-declaration]
The header and source files are in the src folder which are included in the compiler call.