redhat9 gcc sqrt(n)

Nick Olivas nolivas at lanl.gov
Wed Apr 21 22:24:48 UTC 2004


When I compile with gcc and use the function sqrt(n) it returns 
<undefined reference to 'sqrt'>.

When I compile the same code with g++ compilation is successful - no 
warnings, no errors.

I assume that both gcc and g++ use the same <math.h> file?

Any suggestions

Thanks

Nick





More information about the redhat-list mailing list