c++11 - What to do if tgamma() function is not defined? -
i trying use tgamma() standard library. when try compile, error message:
call undefined function tgamma
i have directive #include <cmath>. use embarcadero c++ builder xe3, claims support c++11 standards. problem, , how fix it?
boost contains tgamma function.
#include <boost/math/special_functions/gamma.hpp> ... double rootpi = boost::math::tgamma<double>(0.5); of course, can switch different compiler, gcc.
Comments
Post a Comment