Page 1 of 1

Linker Problem with SalvoLitePIC - Error #500: ; : undefined symbols:

PostPosted: Thu Apr 27, 2006 2:26 am
by rogerRabbit
Hi,

I'm trying to build the /demo/d5 with HI-TIDEV3 + PiccLiteV9.5 and SalvoLitePIC(FREE_LIB). I can compile all src files with no error but when the linker tries to link all the obj files with the lib(sfp42caa.lib), it gives an error msg. Did I miss out any linker options???

**** Full rebuild of configuration Release for project salvoTest ****

C:Program FilesHI-TECH SoftwarePICC-Lite9.50inmake -f hitide.mk clean all
"C:/Program Files/HI-TECH Software/PICC-Lite/9.50/bin/rm" -rf buff.obj int.obj main.obj swrxuart.obj swtxuart.obj buff.d int.d main.d swrxuart.d swtxuart.d salvoTest.hex
Building file: ../buff.c
C:/Program Files/HI-TECH Software/PICC-Lite/9.50/bin/picl --opt=none -c --ide=hitide --chip=16F877 -IC:Program FilesHI-TECH SoftwarePICC-Lite9.50lib -g -m --asmlist --codeoffset=0 --warn=0 --errors=10 --char=unsigned --double=24 -DMAKE_WITH_FREE_LIB -L /lib/sfp42caa.lib --opt=+9 --opt=+space -DMAKE_WITH_FREE_LIB -obuff.obj ../buff.c
Finished building: ../buff.c

Building file: ../int.c
C:/Program Files/HI-TECH Software/PICC-Lite/9.50/bin/picl --opt=none -c --ide=hitide --chip=16F877 -IC:Program FilesHI-TECH SoftwarePICC-Lite9.50lib -g -m --asmlist --codeoffset=0 --warn=0 --errors=10 --char=unsigned --double=24 -DMAKE_WITH_FREE_LIB -L /lib/sfp42caa.lib --opt=+9 --opt=+space -DMAKE_WITH_FREE_LIB -oint.obj ../int.c
Finished building: ../int.c

Building file: ../main.c
C:/Program Files/HI-TECH Software/PICC-Lite/9.50/bin/picl --opt=none -c --ide=hitide --chip=16F877 -IC:Program FilesHI-TECH SoftwarePICC-Lite9.50lib -g -m --asmlist --codeoffset=0 --warn=0 --errors=10 --char=unsigned --double=24 -DMAKE_WITH_FREE_LIB -L /lib/sfp42caa.lib --opt=+9 --opt=+space -DMAKE_WITH_FREE_LIB -omain.obj ../main.c
Finished building: ../main.c

Building file: ../swrxuart.c
C:/Program Files/HI-TECH Software/PICC-Lite/9.50/bin/picl --opt=none -c --ide=hitide --chip=16F877 -IC:Program FilesHI-TECH SoftwarePICC-Lite9.50lib -g -m --asmlist --codeoffset=0 --warn=0 --errors=10 --char=unsigned --double=24 -DMAKE_WITH_FREE_LIB -L /lib/sfp42caa.lib --opt=+9 --opt=+space -DMAKE_WITH_FREE_LIB -oswrxuart.obj ../swrxuart.c
Finished building: ../swrxuart.c

Building file: ../swtxuart.c
C:/Program Files/HI-TECH Software/PICC-Lite/9.50/bin/picl --opt=none -c --ide=hitide --chip=16F877 -IC:Program FilesHI-TECH SoftwarePICC-Lite9.50lib -g -m --asmlist --codeoffset=0 --warn=0 --errors=10 --char=unsigned --double=24 -DMAKE_WITH_FREE_LIB -L /lib/sfp42caa.lib --opt=+9 --opt=+space -DMAKE_WITH_FREE_LIB -oswtxuart.obj ../swtxuart.c
Finished building: ../swtxuart.c

Building target: salvoTest.hex
"C:/Program Files/HI-TECH Software/PICC-Lite/9.50/bin/picl" -L /lib/sfp42caa.lib --summary=mem,file --ide=hitide --chip=16F877 -I"C:Program FilesHI-TECH SoftwarePICC-Lite9.50lib" -g -m --asmlist --codeoffset=0 --warn=0 --errors=10 --char=unsigned --double=24 -DMAKE_WITH_FREE_LIB -L /lib/sfp42caa.lib --output=+intel --output=+mcof --runtime=+init --runtime=+osccal --runtime=+clear --runtime=-clib --runtime=+keep -osalvoTest.hex buff.obj int.obj main.obj swrxuart.obj swtxuart.obj
Error #500: ; : undefined symbols:
save_btemp12 (int.obj)save_btemp13 (int.obj)_OSSignalBinSem (int.obj)save_btemp14 (int.obj)_OSecbArea (int.obj)_OSWaitBinSem (swtxuart.obj)_OStcbArea (int.obj)save_code_ptr (int.obj)used_btemp0 (buff.obj)save_btemp0 (int.obj)save_btemp2 (int.obj)save_btemp4 (int.obj)save_btemp6 (int.obj)save_btemp8 (int.obj)_OSSched (main.obj)_OSTimer (int.obj)_OSReturnBinSem (int.obj)_OSInit (main.obj)?_OSSaveRtnAddr (main.obj)used_btemp1 (int.obj)_OSStartTask (int.obj)?_OSDelay (swrxuart.obj)save_btemp1 (int.obj)_OSSaveRtnAddr (main.obj)save_btemp3 (int.obj)_OSCreateBinSem (int.obj)_OSDelay (swrxuart.obj)save_btemp5 (int.obj)save_btemp7 (int.obj)_OSCreateTask (main.obj)save_btemp10 (int.obj)save_btemp9 (int.obj)save_btemp11 (int.obj)
Error #477: ; : fixup overflow in expression (location 0x1A (0x12+8), size 1, value 0x1A7)
Error #477: ; : fixup overflow in expression (location 0x3C (0x12+42), size 1, value 0x1A7)
Error #477: ; : fixup overflow in expression (location 0x42 (0x12+48), size 1, value 0x1A7)
Error #477: ; : fixup overflow in expression (location 0x58 (0x12+70), size 1, value 0x1A7)
Error #477: ; : fixup overflow in expression (location 0x62 (0x5E+4), size 1, value 0x1A8)
Error #477: ; : fixup overflow in expression (location 0x6C (0x5E+14), size 1, value 0x1A7)
Error #477: ; : fixup overflow in expression (location 0x72 (0x5E+20), size 1, value 0x1A7)
Error #477: ; : fixup overflow in expression (location 0x7C (0x5E+30), size 1, value 0x1A8)
Error #477: ; : fixup overflow in expression (location 0x96 (0x5E+56), size 1, value 0x1A7)
Error #477: ; : fixup overflow in expression (location 0x9A (0x5E+60), size 1, value 0x1A7)
Advisory #1: ; : too many errors (11)
C:Program FilesHI-TECH SoftwarePICC-Lite9.50inmake: *** [salvoTest.hex] Error 1
Build complete for project salvoTest


Re: Linker Problem with SalvoLitePIC - Error #500: ; : undefined symbols:

PostPosted: Thu Apr 27, 2006 5:32 am
by aek
It looks like it's not actually linking to the Salvo library ... also, you haven't added Salvo's mem.c to the project ... add that first and see ...

------------------


Re: Linker Problem with SalvoLitePIC - Error #500: ; : undefined symbols:

PostPosted: Fri Apr 28, 2006 12:29 am
by rogerRabbit
Hi aek,

Thanks for your help. I guess the next thing I'll try is to run the make file manually with the compiler and linker options mentioned in the AN. If it's still failing, I'll give up HI-Tide and just try MPLab.

Roger

quote:
Originally posted by aek:
I'll have to take a closer look later next week -- one thing you can do is compare your build results to those listed in the App Note to see if there are any substantial differences in the command-line arguments to the compiler and linker.



Re: Linker Problem with SalvoLitePIC - Error #500: ; : undefined symbols:

PostPosted: Fri Apr 28, 2006 11:23 am
by rogerRabbit
I've included "mem.c" in the project but I'm still getting the same error. Is there a simple test that I can do to test the linker?


quote:
Originally posted by aek:
It looks like it's not actually linking to the Salvo library ... also, you haven't added Salvo's mem.c to the project ... add that first and see ...



Re: Linker Problem with SalvoLitePIC - Error #500: ; : undefined symbols:

PostPosted: Fri Apr 28, 2006 11:35 am
by aek
I'll have to take a closer look later next week -- one thing you can do is compare your build results to those listed in the App Note to see if there are any substantial differences in the command-line arguments to the compiler and linker.

------------------