[En-Nut-Discussion] linker problems

qdg at phas.ubc.ca qdg at phas.ubc.ca
Fri Oct 20 01:15:39 CEST 2006


hi I had a working program for the Ethernut 2.1b written around may 2005
(I forget which version of the Ethernut software was released then) and
haven't touched it since

but now I installed the newest version of Ethernut and Winavr and tried to
compile, I get alot of linker errors (the Ethernut build went
succesfully):

avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
-Wstrict-prototypes -Wa,-ahlms=urom.lst -DETHERNUT2 -D__HARVARD_ARCH__
-IC:/ethernut-4.2.1/nutbld/include  -IC:/ethernut-4.2.1/nut/include 
urom.c -o urom.o
avr-gcc GPIBENUTKERNEL.o DemoGPIBhttpd.o GPIBTCPS.o GPIB.o 7210INTF.o
NutOSINTF.o urom.o -mmcu=atmega128
-Wl,--defsym=main=0,-Map=GPIB.map,--cref -LC:/ethernut-4.2.1/nutbld/lib
-Wl,--start-group C:/ethernut-4.2.1/nutbld/lib/nutinit.o -lnutpro -lnutfs
-lnutos -lnutdev -lnutos -lnutnet -lnutcrt -Wl,--end-group -o GPIB.elf
GPIBENUTKERNEL.o: In function `NutAppMain':
GPIBENUTKERNEL.c:(.text+0x4e): undefined reference to `devSmsc111'
GPIBENUTKERNEL.c:(.text+0x50): undefined reference to `devSmsc111'
GPIBENUTKERNEL.c:(.text+0x132): undefined reference to `NutThreadCreate'
GPIBENUTKERNEL.c:(.text+0x15e): undefined reference to `NutThreadCreate'
NutOSINTF.o: In function `NutInitDevices':
NutOSINTF.c:(.text+0x44): undefined reference to `devUsartAvr0'
NutOSINTF.c:(.text+0x46): undefined reference to `devUsartAvr0'
C:/ethernut-4.2.1/nutbld/lib/nutinit.o: In function `NutIdle':
nutinit.c:(.text+0x1a): undefined reference to `NutThreadCreate'
C:/ethernut-4.2.1/nutbld/lib/nutinit.o: In function `NutInit':
nutinit.c:(.init8+0x2e): undefined reference to `NutThreadCreate'
C:/ethernut-4.2.1/nutbld/lib\libnutpro.a(dhcpc.o): In function `DhcpKick':
dhcpc.c:(.text+0x14be): undefined reference to `NutThreadCreate'
C:/ethernut-4.2.1/nutbld/lib\libnutos.a(thread.o): In function
`NutThreadResume':
thread.c:(.text+0x192): undefined reference to `NutThreadSwitch'
C:/ethernut-4.2.1/nutbld/lib\libnutos.a(thread.o): In function
`NutThreadSetPriority':
thread.c:(.text+0x2be): undefined reference to `NutThreadSwitch'
C:/ethernut-4.2.1/nutbld/lib\libnutos.a(timer.o): In function `NutTimerInit':
timer.c:(.text+0x2c): undefined reference to `NutRegisterTimer'
C:/ethernut-4.2.1/nutbld/lib\libnutos.a(timer.o): In function
`NutTimerStart':
timer.c:(.text+0x1c0): undefined reference to `NutTimerMillisToTicks'
C:/ethernut-4.2.1/nutbld/lib\libnutos.a(timer.o): In function
`NutGetSeconds':
timer.c:(.text+0x412): undefined reference to `NutGetTickClock'
C:/ethernut-4.2.1/nutbld/lib\libnutos.a(timer.o): In function `NutGetMillis':
timer.c:(.text+0x450): undefined reference to `NutGetTickClock'
timer.c:(.text+0x464): undefined reference to `NutGetTickClock'
timer.c:(.text+0x4a8): undefined reference to `NutGetTickClock'
C:/ethernut-4.2.1/nutbld/lib\libnutdev.a(nvmem.o): In function
`NutNvMemLoad':
nvmem.c:(.text+0x0): undefined reference to `OnChipNvMemLoad'
C:/ethernut-4.2.1/nutbld/lib\libnutdev.a(nvmem.o): In function
`NutNvMemSave':
nvmem.c:(.text+0x6): undefined reference to `OnChipNvMemSave'
C:/ethernut-4.2.1/nutbld/lib\libnutnet.a(tcpsm.o): In function
`NutTcpInitStateMachine':
tcpsm.c:(.text+0x11fe): undefined reference to `NutThreadCreate'
make.exe: *** [GPIB.elf] Error 1

any ideas? thanks







More information about the En-Nut-Discussion mailing list