This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem when compiling


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++.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]