[En-Nut-Discussion] Ethernut 2.1 and AVR studio
Xeeon
mbabik82 at gmail.com
Sat Jan 17 16:19:23 CET 2009
Hello. Is it possible to compile NutOS in AVR studio using WinAVR? I tried
that many times but with many errors.
I would like to start with httpd.c app (renamed to ethernut.c). And this is
the result:(
avr-gcc -I"C:\Ethernut 2.1B\..\ethernut-4.6.4\nutbld\include" -I"C:\Ethernut
2.1B\..\ethernut-4.6.4\nut\include" -mmcu=atmega128 -Wall -gdwarf-2
-std=gnu99 -DF_CPU=16000000UL -Os -fsigned-char -MD -MP -MT
Ethernut.o -MF dep/Ethernut.o.d -c ../Ethernut.c
../Ethernut.c: In function 'NutAppMain':
../Ethernut.c:878: warning: no return statement in function returning
non-void
avr-gcc -mmcu=atmega128 -Wl,-Map=ethernut.map Ethernut.o urom.o
"C:\ethernut-4.6.4\nut\lib\gcc\ethernut21b\nutinit.o"
-L"C:\ethernut-4.6.4\nutbld\lib" -lnutarch -lnutc -lnutcpp -lnutcrt
-lnutdev -lnutfs -lnutnet -lnutos -lnutpro -o ethernut.elf
c:/winavr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr51/crtm128.o:(.init9+0x0):
undefined reference to `main'
C:\ethernut-4.6.4\nutbld\lib\libnutnet.a(confnet.o): In function
`NutNetSaveConfig':
confnet.c:(.text+0x12): undefined reference to `NutNvMemSave'
C:\ethernut-4.6.4\nutbld\lib\libnutnet.a(confnet.o): In function
`NutNetLoadConfig':
confnet.c:(.text+0x3a): undefined reference to `NutNvMemLoad'
C:\ethernut-4.6.4\nutbld\lib\libnutos.a(confos.o): In function
`NutSaveConfig':
confos.c:(.text+0x1e): undefined reference to `NutNvMemSave'
C:\ethernut-4.6.4\nutbld\lib\libnutos.a(confos.o): In function
`NutLoadConfig':
confos.c:(.text+0x40): undefined reference to `NutNvMemLoad'
C:\ethernut-4.6.4\nutbld\lib\libnutpro.a(httpd.o): In function
`NutHttpProcessRequest':
httpd.c:(.text+0xb30): undefined reference to `_filelength'
httpd.c:(.text+0xba2): undefined reference to `stat'
httpd.c:(.text+0xca6): undefined reference to `_filelength'
httpd.c:(.text+0xd24): undefined reference to `_read'
C:\ethernut-4.6.4\nutbld\lib\libnutpro.a(asp.o): In function
`NutHttpProcessAsp':
asp.c:(.text+0x6e): undefined reference to `_filelength'
asp.c:(.text+0xd8): undefined reference to `_read'
C:\ethernut-4.6.4\nutbld\lib\libnutpro.a(ssi.o): In function
`NutSsiProcessVirtual':
ssi.c:(.text+0x3c8): undefined reference to `_filelength'
ssi.c:(.text+0x43c): undefined reference to `_filelength'
ssi.c:(.text+0x480): undefined reference to `_read'
C:\ethernut-4.6.4\nutbld\lib\libnutpro.a(ssi.o): In function
`NutHttpProcessSHTML':
ssi.c:(.text+0x5ae): undefined reference to `_read'
ssi.c:(.text+0x618): undefined reference to `_seek'
ssi.c:(.text+0x660): undefined reference to `_seek'
ssi.c:(.text+0x8b6): undefined reference to `_filelength'
ssi.c:(.text+0x8f6): undefined reference to `_read'
ssi.c:(.text+0x988): undefined reference to `_seek'
make: *** [ethernut.elf] Error 1
Build failed with 20 errors and 1 warnings...
--
View this message in context: http://www.nabble.com/Ethernut-2.1-and-AVR-studio-tp21517392p21517392.html
Sent from the MicroControllers - Ethernut mailing list archive at Nabble.com.
More information about the En-Nut-Discussion
mailing list