gcc's(4.4.3) math lib :power

Paolo Carlini pcarlini@gmail.com
Fri Oct 29 22:40:00 GMT 2010


> that site show this code should run, but I get compiler error

Actually you get a *linker* (ie, ld) error. Try adding -lm to the command line.

Paolo

Ps: in the future please prefer gcc-help...



More information about the Gcc mailing list