[Top][All Lists]

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

[avr-gcc-list] undefined reference to "exit" error

From: Gary French
Subject: [avr-gcc-list] undefined reference to "exit" error
Date: Tue, 25 Sep 2007 19:11:59 -0400
User-agent: KMail/1.9.4

I've built an avr compiler with binutils-2.17, gcc-4.2.0, and avr-libc (cvs as 
of 2007-09-15)

at90s1200, attiny11, attiny12, and attiny28 targets give the following error 
when compiling for assembly (where XXXX is the file specific to the device):

[...]avr/lib/crtXXXX.o: In function `__bad_interrupt':
../../../../crt1/gcrt1.S:124: undefined reference to `exit'

exit.o is in lib/avr25/libc.a and adding -lgcc does make this go away, but I'm 
not entirely sure I trust that it's the right one.

I'm aware that "XJMP main" was recently replaced with "XCALL main; XJMP exit" 
in gcrt1.S, could that be related?

any opinions or thoughts would be appreciated.

"To obtain, something of equal value must be lost."

reply via email to

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