Pumpkin, Inc.

Pumpkin User Forums

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

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

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

Postby rogerRabbit » Thu Apr 27, 2006 2:26 am

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

rogerRabbit
 
Posts: 4
Joined: Wed Apr 19, 2006 11:00 pm
Location: fremont, CA

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

Postby aek » Thu Apr 27, 2006 5:32 am

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 ...

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

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

Postby rogerRabbit » Fri Apr 28, 2006 12:29 am

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.


rogerRabbit
 
Posts: 4
Joined: Wed Apr 19, 2006 11:00 pm
Location: fremont, CA

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

Postby rogerRabbit » Fri Apr 28, 2006 11:23 am

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 ...


rogerRabbit
 
Posts: 4
Joined: Wed Apr 19, 2006 11:00 pm
Location: fremont, CA

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

Postby aek » Fri Apr 28, 2006 11:35 am

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.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 0 guests

cron