[En-Nut-Discussion] Nut/os problem (NutAppMain)

YoungDong Yoo uc at techiz.com
Tue Jul 26 15:49:12 CEST 2005


Hi, Julien

I don't know why that is happen.
But,
"NutAppMain" equals "main".
It is defined in "include/arch/avr.h".
So, if you modify your "tcps.c" as follows:
#include <arch/avr.h>

Try it.

Your regards.
YoungDong Yoo


-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Julien CHAUSSEC
Sent: Tuesday, July 26, 2005 9:02 PM
To: Ethernut User Chat (English)
Subject: [En-Nut-Discussion] Nut/os problem (NutAppMain)

Hello everybody,

This is the response of the AVR-GCC compiler and i don't where does the 
error come from. If anyone has an idea!
Thank you

avr-gcc tcps.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=tcps.map,--cref 
-LC:/ethernut-3.9.7/nutbld/lib  C:/ethernut-3.9.7/nutbld/lib/nutinit.o 
-lnutdev -lnutnet -lnutpro -lnutnet -lnutfs -lnutos -lnutdev -lnutcrt 
-lnutos  -o tcps.elf
C:/ethernut-3.9.7/nutbld/lib/nutinit.o(.text+0x12): In function `NutIdle':
: undefined reference to `NutAppMain'
C:/ethernut-3.9.7/nutbld/lib/nutinit.o(.text+0x14): In function `NutIdle':
: undefined reference to `NutAppMain'
make.exe: *** [tcps.elf] Error 1

 > Process Exit Code: 2

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list