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

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

[avr-gcc-list] math linking problem even with -lm


From: Andrew McNabb
Subject: [avr-gcc-list] math linking problem even with -lm
Date: Tue, 21 Jun 2005 13:55:18 -0600
User-agent: Mutt/1.4.2.1i

I'm using the math library for the first time, but the compiler doesn't
seem to like what I'm doing.  I was smart enough to put "-lm" in the
linker flags, and I even added "-L/usr/avr/lib" just in case, but that
still didn't help.  /usr/avr/lib/libm.a definitely exists, and it
includes sin.o.  I'm sure I'm still doing something dumb.  Does anyone
know what could be happening?  Thanks in advance.

avr-gcc -mmcu=atmega8 -lm -L/usr/avr/lib  sound1.o   -o sound1
sound1.o: In function `__vector_8':
sound1.c:(.text+0xac): undefined reference to `sin'
make: *** [sound1] Error 1


-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868

Attachment: pgpygpTu77am9.pgp
Description: PGP signature


reply via email to

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