Re: math.h library

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

 



On 29 April 2011 15:11, wayne schlemitz wrote:
> Jonathan:
>
> I checked the /bits/mathcalls.h as you suggested. Both the pow() and exp() are there. When I compile the program gcc -o gomp gomp.c I get the following error message undefined reference to 'pow'. What am I missing and what should I do next?

Please reply to the mailing list, not just to me, thanks.

As it tells you in the man pages for pow and exp:

       Link with -lm.


[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