Problem when compiling

Tim Prince tprince@computer.org
Tue Feb 26 12:52:00 GMT 2002


On Tuesday 26 February 2002 08:56, samir idrissi wrote:
> #include <math.h>
> ...

> /tmp/cc4REunT.o(.text+0x2ac): undefined reference to `pow'
>
> I have no problem when compliling with g++.
>
> What can I do if I want to complile with gcc ?
If you don't like to append -lm, stick with g++.



More information about the Gcc mailing list