Re: gcc 2.95.3 linker problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux