math.h library
Jonathan Wakely
jwakely.gcc@gmail.com
Sat Apr 30 10:53:00 GMT 2011
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.
More information about the Gcc-help
mailing list