[En-Nut-Discussion] Problems compiling 4.1.3

Ralf Spettel r.spettel at raumcomputer.com
Tue Jan 24 20:21:18 CET 2006


Hello Hugo,
take a look to:
http://cvs.sourceforge.net/viewcvs.py/ethernut/nut/ChangeLog?view=markup
spezial to the library order in makefile.... LIBS= ...

Copy this line from an new app to your project.


To use different verisons of NutOS simply create two directories, i.e.

c:/entwickl/ethernut-4.1.2 and
c:/entwickl/ethernut-4.1.3

If you want work with 4.1.3 map it to E:/ (as network drive or with subst)
and install avrgcc/armgcc and ethernut to E:/ not (!) to c:/  


e:\avrgcc
e:\nut or e:\ethernut but not (!) e:\ethernut-4.1.x ...

So all your paths pointing to e: and you can change the project with un-subst the old and subst the new..

 Ralf 


>Sorry again,
>
>another problem with compiling my apps or the httpd sample on 4.1.3.
>In my own app it seems that the linker (compiling is ok) doesn't find _any_
>NutOS functions. Why that?
>
>avr-gcc thermometer.o ds18x20.o onewire.o delay.o config.o
>urom.o -mmcu=atmega12
>8 -Wl,--defsym=main=0,-Map=thermometer.map,--cref -Lc:/entwickl/ethernut-4.1
>.3/n
>utbld/lib
>c:/entwickl/ethernut-4.1.3/nutbld/lib/nutinit.o  -lnutnet -lnutpro -ln
>utfs -lnutos -lnutdev -lnutos -lnutnet -lnutcrt  -o thermometer.elf
>thermometer.o(.text+0x1aa): In function `NutAppMain':
>: undefined reference to `devDebug0'
>thermometer.o(.text+0x1ac): In function `NutAppMain':
>: undefined reference to `devDebug0'
>thermometer.o(.text+0x26c): In function `NutAppMain':
>: undefined reference to `NutThreadCreate'
>[...]
>
>
>If I try to compile httpd sample typing "make" in the httpd sample directory
>I get the following errors:
>
>avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall -Wstric
>t-pr
>ototypes -Wa,-ahlms=httpserv.lst -D__HARVARD_ARCH__ -Ic:/entwickl/ethernut-4
>.1.3
>/nutbld/include  -Ic:/entwickl/ethernut-4.1.3/nut/include  httpserv.c -o
>httpser
>v.o
>httpserv.c: In function `NutAppMain':
>httpserv.c:557: error: `devEth0' undeclared (first use in this function)
>httpserv.c:557: error: (Each undeclared identifier is reported only once
>httpserv.c:557: error: for each function it appears in.)
>httpserv.c:571: warning: implicit declaration of function `NutNetIfConfig'
>make: *** [httpserv.o] Error 1
>
>What's the problem here?
>
>bye
>Thorsten
>  
>




More information about the En-Nut-Discussion mailing list