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

Reply via email to