redhat9 gcc sqrt(n)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux