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