Unable to include cmath using GCC 5.5 on Solaris 10
问题 I am trying to run the following test program on my Solaris 10 sparc machine using gcc 5.5.0 #include <iostream> #include <cmath> int main() { std::cout << "exp2(4) = " << std::exp2(4) << '\n' << "exp2(0.5) = " << std::exp2(0.5) << '\n' << "exp2(-4) = " << std::exp2(-4) << '\n'; return 0; } Here are the OS details, ~$ uname -a SunOS sovms577 5.10 Generic_147147-26 sun4v sparc SUNW,SPARC-Enterprise-T5220 ~$ cat /etc/release Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC Copyright (c) 1983, 2013,