bug report in gcc 2.96

Florian Weimer fw@deneb.enyo.de
Sun Oct 7 23:39:00 GMT 2001


Nino Antonio Bozzi Alvarez <cavaliernino@netscape.net> writes:

> I'm Nino Bozzi, and when I try to compile including math.h, gcc crashes.

This is not a "crash".

> _Version:   2.96 20000731

AFAIK, this compiler release has not been prepared by the GCC team.

> _System :       Red Hat Linux 7.1 2.96-85

You should contact your vendor if you want to report defects.

> _Trigger command line:  gcc 4_6.c -o 4_6
> _Compiler output:   /tmp/ccv2V8Lu.o: In function `main':
>             /tmp/ccv2V8Lu.o(.text+0x65): undefined reference            to `pow'
>             collect2: ld returned 1 exit status

This means that the linker (not the compiler) was unable to find a
defintion of the "pow" function.  Probably you forgot to link with the
math library (using the "-lm" switch).



More information about the Gcc-bugs mailing list