This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: math.h
- To: celio at hades dot utp dot edu dot co
- Subject: Re: math.h
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 7 Mar 2000 00:06:30 +0100
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <Pine.LNX.4.20.0003061610560.19279-100000@hades.utp.edu.co>
> when i try to use any function from math.h pow, sin, cos, etc, i get the
> following message: /tmp/cc5Ig4Rz.o: In function `main':
> /tmp/cc5Ig4Rz.o(.text+0x15): undefined reference to `sinl'
You need to link with -lm.
Martin