[En-Nut-Discussion] 'devDebug0' undeclared error

FONOAGE MIHAI-GCD467 GCD467 at motorola.com
Tue May 29 13:56:31 CEST 2007


 
Hi Ernst,

Thank you for your response. This is my output when trying to build the inetq app:

make all 
arm-elf-gcc -MD -c -mcpu=arm7tdmi -Os -mthumb-interwork -fomit-frame-pointer -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=inetq.lst -DAT91SAM7X_EK -I./nutbld/include  -I../.././nut/include -I'C:\SAM Studio 0.2\workspace/../yagarto/arm-elf/include' -I'C:\SAM Studio 0.2\workspace/../yagarto/lib/gcc/arm-elf/4.1.1/include' inetq.c -o inetq.o
inetq.c: In function 'main':
inetq.c:187: error: 'devDebug0' undeclared (first use in this function)
inetq.c:187: error: (Each undeclared identifier is reported only once
inetq.c:187: error: for each function it appears in.)
inetq.c:217: warning: pointer targets in passing argument 1 of 'NutDnsGetHostByName' differ in signedness
make: *** [inetq.o] Error 1

I am new at all this, so I do hope that the above output answers your questions. As you can see, I am using the arm-elf-gcc and my Processor is an ARM7TDMI. Any help is appreciated.

Thank you,
Mihai Fonoage

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Ernst Stippl
Sent: Saturday, May 26, 2007 5:22 AM
To: 'Ethernut User Chat (English)'
Subject: Re: [En-Nut-Discussion] 'devDebug0' undeclared error

Hi!

I just tried compiling inetq.c 4.3.2 with avr-gcc 3.4.6 and all worked ok:

I:\ethernut_4.3.2\nutapp_avr_3.4.6>cd inetq

I:\ethernut_4.3.2\nutapp_avr_3.4.6\inetq>make
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall -Wstrict-prototypes -Wa,-ahlms=inetq.lst -DETHERNUT2 -D__HARVARD_ARCH__ -I../.././nutbld_avr_3.4.6/include  -I../.././nut/include  inetq.c -o inetq.o avr-gcc inetq.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=inetq.map,--cref
-L../.././nutbld_avr_3.4.6/lib -Wl,--start-group ../.././nutbld_avr_3.4.6/lib/nutinit.o -lnutpro -lnutos -lnutarch -lnutdev -lnutarch -lnutnet -lnutfs -lnutcrt -Wl,--end-group -o inetq.elf avr-objcopy -R .eeprom -O ihex inetq.elf inetq.hex avr-objcopy -O binary inetq.elf inetq.bin

I:\ethernut_4.3.2\nutapp_avr_3.4.6\inetq>

Did you use another Ethernut / compiler version? 
Did you configure/build Ethernut with the configurator before compiling the example?

regards
Ernst 

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von FONOAGE
MIHAI-GCD467
Gesendet: Freitag, 25. Mai 2007 17:11
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] 'devDebug0' undeclared error

Hello,
 
I am trying to build the inetq application and I get the following error when calling "NutRegisterDevice(&DEV_DEBUG, 0, 0);" : "inetq.c:135:
error: 'devDebug0' undeclared (first use in this function)". This variable is declared in the board.h header file: "#define DEV_DEBUG devDebug0".
Please advice what can I do to fix this? 
 
Thank you,
Mihai Fonoage
 
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.0/818 - Release Date: 25.05.2007
12:32


_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



More information about the En-Nut-Discussion mailing list