gcc 2.95.3 linker problems
Ishwar Rattan
ishwar@cps.cmich.edu
Sat Sep 13 15:03:00 GMT 2003
Try to include math-library with -lm option at the end of command-line
gcc prog.c -lm
-ishwar
On Sat, 13 Sep 2003, Jakob Bucher wrote:
> Dear gcc-experts,
>
> I´m using the gcc 2.95.3 compiler on a use linux 8.0 system.
>
> Normal c-programs run fine. However when I use math-functions as "exp", or "log" the linker claims unresolved reference.
> The math.h header has been included and the libc-devel been loaded using Yast2.
>
> In the libc the math-functions appear not to be available.
>
> My question is where to find the library of the math-functions and how to persuade the linker to use it.
>
> Your advice will be highly appreciated.
>
> Best regards
>
> Jakob Bucher
>
>
More information about the Gcc-help
mailing list