This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc's(4.4.3) math lib :power
- From: Paolo Carlini <pcarlini at gmail dot com>
- To: eric lin <ericlin at fsshl dot zzn dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sat, 30 Oct 2010 00:40:27 +0200
- Subject: Re: gcc's(4.4.3) math lib :power
- References: <0D43FD516428C1E418C957F8EAF2FAF6@ericlin.fsshl.zzn.com>
> that site show this code should run, but I get compiler error
Actually you get a *linker* (ie, ld) error. Try adding -lm to the command line.
Paolo
Ps: in the future please prefer gcc-help...