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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -