[En-Nut-Discussion] contiki make problem

Harald Kipp harald.kipp at egnite.de
Fri Jul 1 18:30:03 CEST 2005


Nicolas,

Wrong mailing list. The right one is
contiki-developers at lists.sourceforge.net

BUT, I can help. :-) Either try to get a newer version of Contiki
or revert to a previous WinAVR release. WinAVR-20030913 is still
my choice for many existing applications.

The Reason for the problems is

BV() is now _BV()
outp(PORT, val) is now PORT = val
sbi(PORT, bit) is now PROT |= _BV(bit)

Blame the people responsible for avr-libc, who refused to listen
to us, that they break too many existing things with these changes,
just to make avr-libc look like IAR. (This is spoken in a friendly
tone with a big smile on my face.)

Harald


At 17:56 01.07.2005 +0200, you wrote:
>Hi!
>I'm trying to make my first nut/os application "contiki-main.c" and my 
>compiler (avr-gcc, taked from ) gives me this error :
>
>contiki-main.o(.text+0x5a): In function `main':
>E:\contiki-avr/contiki-main.c:134: undefined reference to `BV'
>contiki-main.o(.text+0x64):E:\contiki-avr/contiki-main.c:134: undefined 
>referenc
>e to `BV'
>contiki-main.o(.text+0x6e):E:\contiki-avr/contiki-main.c:134: undefined 
>referenc
>e to `outp'
>contiki-main.o(.text+0x7c):E:\contiki-avr/contiki-main.c:95: undefined 
>reference
>  to `outp'
>contiki-main.o(.text+0x88):E:\contiki-avr/contiki-main.c:98: undefined 
>reference
>  to `sbi'
>
>with more errors with undefined reference to theses variables.
>
>Can you help me?
>I follow the ethernutsofware manual 2.0 instructions but it doesn't work.
>I'm using winAVR 2005 02 14 tool set and Ethernut 3.9.7 under W2K sp4.
>Thank you for any answer.
>Nicolas
>
>Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !
>  Créez votre Yahoo! Mail sur http://mail.yahoo.fr
>_______________________________________________
>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