Missing TR1 cmath functions

Paolo Carlini paolo.carlini@oracle.com
Wed Aug 27 22:54:00 GMT 2008


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.



More information about the Libstdc++ mailing list