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

Re: possible libc problem?



Silly rabbit math is for kids.......  You need a -lm (lib math).

Brian Almeida wrote:
> 
> Hello,
> 
> I'm not sure if this is a FAQ or what, but the sin(double) function
> does not appear to be working...I am using libc6 2.0.7pre3-1.
> 
> #include <stdio.h>
> #include <math.h>
> main() {
>   printf("%f\n", sin(90.0));
> }
> 
> When I try to compile with gcc 2.7.2.3-4.2, it gives me this:
> balmeida@terminus: gcc z.c -o z
> /tmp/cca042071.o: In function `main':
> /tmp/cca042071.o(.text+0xb): undefined reference to `sin'
> 
> Anyone have any suggestions?
> 
> --
> Brian Almeida <balmeida@kylz.com>
> http://web.terminus.cicat.com
> PGP Key: pub  1024/3A800C65 1998/04/20 Brian M. Almeida <balmeida@kylz.com>
> 
> --
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
-----------------------------------------------
How can you see, when your mind is not open?
How can you think, when your eyes are closed?
- Jason Bonham Band, "Ordinary Black and White"
-----------------------------------------------


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: