[En-Nut-Discussion] Can't compile NutOs Example

Johan van der Stoel j.v.d.stoel at stream-it.nl
Fri Sep 17 15:19:48 CEST 2004


Dear Harald,

> You may try 'crurom -r -ourom.c sample' on the
> command line (after changing to the httpd directory).

This failed on my side. Why? because the path setting was not there. It is
in the Nutconf (and has always been there), but I needed to set it as
described on page 22. I think you should update page 24 on this point.

I came one step further now, but got another error after entering make:

D:\ethernut\nutapp-13g\httpd>make
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes -Wa,-ahlms=httpserv
.lst
 -D__HARVARD_ARCH__ -ID:/ethernut/build/include -ID:/ethernut/nut/include
https
erv.c -o httpserv.o
httpserv.c: In function `ShowForm':
httpserv.c:393: warning: implicit declaration of function `strtok_r'
httpserv.c:393: warning: assignment makes pointer from integer without a
cast
httpserv.c:400: warning: assignment makes pointer from integer without a
cast
httpserv.c:406: warning: assignment makes pointer from integer without a
cast
crurom -r -ourom.c sample
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes -Wa,-ahlms=urom.lst
 -D_
_HARVARD_ARCH__ -ID:/ethernut/build/include -ID:/ethernut/nut/include
urom.c -o
 urom.o
avr-gcc httpserv.o
urom.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=httpserv.map,
--cref -LD:/ethernut/build/lib
 D:/ethernut/build/lib/nutinit.o  -lnutnet -lnutp
ro -lnutfs -lnutos -lnutdev -lnutnet -lnutcrt -o httpserv.elf
httpserv.o: In function `ShowForm':
httpserv.o(.text+0x632): undefined reference to `strtok_r'
httpserv.o(.text+0x654): undefined reference to `strtok_r'
httpserv.o(.text+0x67a): undefined reference to `strtok_r'
make: *** [httpserv.elf] Error 1

D:\ethernut\nutapp-13g\httpd>

How to solve?

Thanks in advance for your kind support.

Johan van der Stoel
--------------------------------------------------------------------
Streamit                            Tel.:  +31 (0)40-2556036
Dotterbeek 32                       Mob: +31 (0)6-18842718
NL-5501 BH Veldhoven                Fax.: +31 (0)40-8443942
Web: www.stream-it.nl
<http://www.stream-it.nl>           E-mail: j.v.d.stoel at stream-it.nl
--------------------------------------------------------------------







More information about the En-Nut-Discussion mailing list