This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missing TR1 cmath functions


John Maddock wrote:
#include <tr1/cmath>

int main()
{
std::tr1::tgamma(0);
}

leads to:

t.cpp: In function 'int main()':
t.cpp:5: error: 'tgamma' is not a member of 'std::tr1'
I suspect this may be because you are running (recent) darwin: in that case the llrint and llround functions may be unavailable, and _GLIBCXX_USE_C99_MATH_TR1 remains undefined....

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]