[LCP]Math problems

Greg Black gjb at gbch.net
Tue Nov 25 03:47:01 UTC 2003


On 2003-11-24, Alexandre Aguiar wrote:

> The following code will compile fine but won't link. Error message: undefined 
> reference to 'pow'.

RTFM, in this case math(3m), and you'll see that you need to add
the "-lm" argument to your link command line.

Greg



More information about the linuxCprogramming mailing list