AW: [En-Nut-Discussion] tcps (and others) won't compile

Ernst Stippl ernst at stippl.org
Thu Apr 20 20:43:11 CEST 2006


 
Hi Christoph!

The compiler invocation that works for Nut/OS 4.0.3 and AVR-gcc 3.4.5 is:

avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
-Wstrict-prototypes -Wa,-ahlms=tcps.lst -DETHERNUT2 -D__HARVARD_ARCH__
-IJ:/ethernut-4.0.3-avr-3.4.5/nutbld/include
-IJ:/ethernut-4.0.3-avr-3.4.5/nut/include  tcps.c -o tcps.o

The main difference to your cmd is you dont use the -DETHERNUT2 and
...../nutbld/include and ...../nut/include

Dont you separate the build directory from the source directory?
which gcc and Nut/OS version are you using?

regards
ernst

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Christoph Eicke
Gesendet: Mittwoch, 19. April 2006 07:53
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] tcps (and others) won't compile

Hi,

I have problems compiling the tcps and other examples. Basemon works
correctly, but when it comes to examples that utilize the network stuff in
ethernut I get the following error when typing "make":

avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
-Wstrict-prototypes -Wa,-ahlms=tcps.lst -D__HARVARD_ARCH__ 
-DNUT_CPU_FREQ=16000000   -I../../include  tcps.c -o tcps.o
tcps.c: In function `NutAppMain':
tcps.c:263: error: `devEth0' undeclared (first use in this function)
tcps.c:263: error: (Each undeclared identifier is reported only once
tcps.c:263: error: for each function it appears in.)
tcps.c:278: warning: implicit declaration of function `NutNetLoadConfig'
tcps.c:280: warning: implicit declaration of function `NutNetSaveConfig'
tcps.c:295: warning: implicit declaration of function `NutNetIfConfig'
make: *** [tcps.o] Error 1

I am using the ethernub 2.1b board with AVR-GCC under Gentoo Linux.
I have checked that dev/board.h is there and also is taken into account. I
assume that's where the devEth0 is defined in. I cannot explain myself this
error so I thought I would ask other's for any hints where the problem might
be.
Thanks,
Christop
--
GPG Key ID: 33D6AA8C
AIM: zeitgeist2600
ICQ: 271512600
Jabber: zeitgeist at jabber.ccc.de
http://www.geisterstunde.org
http://www.ceicke.de
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/319 - Release Date: 19.04.2006



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/319 - Release Date: 19.04.2006





More information about the En-Nut-Discussion mailing list