avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] link problems


From: address@hidden
Subject: [avr-gcc-list] link problems
Date: Tue, 8 Mar 2005 13:48:12 +0100

Dear All,

I have installed binutils-2.15 (configuring with --prefix=/usr --target=avr
--program-prefix="avr-"), gcc-3.4.3 (same configure options plus
--enable-languages=c) and avr-libc-1.2.3 (with doconf --prefix=/usr
--target=avr). I am running a fedora-core3.

When I try to build a simple example program, it compiles fine (wiht avr-gcc -g
 -mmcu=atmega8 leds.c -c -o leds), but then it seems that gcc is not able to
link libc: when I try
avr-gcc -g  -mmcu=atmega8 leds.c -o leds
I get:
/home/enrico/led/leds.c:12: undefined reference to `cli'
/tmp/cc0lcrTb.o(.text+0x16):/home/enrico/led/leds.c:14: undefined reference to
`outp'
/tmp/cc0lcrTb.o(.text+0x24):/home/enrico/led/leds.c:15: undefined reference to
`outp'
/tmp/cc0lcrTb.o(.text+0x32):/home/enrico/led/leds.c:17: undefined reference to
`outp'
/tmp/cc0lcrTb.o(.text+0x56): In function `test':
/home/enrico/led/leds.c:29: undefined reference to `outp'

any idea what the problem could be?

Thank you in advance.
Enrico



____________________________________________________________
Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it






reply via email to

[Prev in Thread] Current Thread [Next in Thread]