Says where to look for a built copy of the library that contains GPIOInit() and the:Īdds the library itself to the linked objects. L"C:\Documents and Settings\asl\My Documents\LPCXpresso\workspace\lpc800_driver_lib\Debug" src/main.o -lCMSIS_CORE_LPC8xx -llpc800_driver_lib I"C:\Documents and Settings\asl\My Documents\LPCXpresso\workspace\lpc800_driver_lib"įurther to this I also have this in the link:Īrm-none-eabi-gcc -nostdlib -L"C:\Documents and Settings\asl\My Documents\LPCXpresso\workspace\CMSIS_CORE_LPC8xx\Debug" -L"C:\Documents and Settings\asl\My Documents\LPCXpresso\workspace\lpc800_driver_lib\Debug" -Xlinker -Map="lpc8test1.map" -Xlinker -gc-sections -mcpu=cortex-m0 -mthumb -T "lpc8test1_Debug.ld" -o "lpc8test1.axf". I imagine the structure is going to be similar for LPC11xx or LPC13xx or whatever.Īnd this is further supported by the -I on the command line:Īrm-none-eabi-gcc -D_REDLIB_ -DDEBUG -D_CODE_RED -D_USE_CMSIS=CMSIS_CORE_LPC8xx -D_LPC8XX_ -I"C:\Documents and Settings\asl\My Documents\LPCXpresso\workspace\lpc800_driver_lib" -I"C:\Documents and Settings\asl\My Documents\LPCXpresso\workspace\CMSIS_CORE_LPC8xx\inc" -I"C:\Documents and Settings\asl\My Documents\LPCXpresso\workspace\lpc800_driver_lib\inc" -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -std=gnu99 -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "./src/main.c" For the LPC800 the GPIOInit() function is provided by the lpc8xx_gpio.c and documented by the lpc8xx_gpio.h in the lpc800_driver_lib. I'm currently working wit hLPC800 so these details may be slightly different but they may give you an idea where to look. The header and source files are in the src folder which are included in the compiler call.Ĭontent originally posted in LPCWare by wrighflyer on Mon Feb 04 03:30: src/main.c:31:2: warning: implicit declaration of function 'StartLis500Clock' src/main.c:29:2: warning: implicit declaration of function 'GPIOInit' Below is the command called and the warnings:Īrm-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" #IMPLICIT DECLARATION OF FUNCTION CODE#My code works but I am uncomfortable with warnings showing up. 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. I get a couple of "implicit declaration of function" warnings when I compile my code. The problem is that I called an undeclared function, which means that the compiler does not know that the return value and parameter list of this function need to be preceded by a function declaration, or in the. Content originally posted in LPCWare by hjetschko on Sun Feb 03 17:13:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |