
On Sun, Oct 28, 2012 at 2:38 AM, John Maddock <boost.regex@virgin.net>wrote:
* Boost.Python (the same ::hypot error that also plagues GCC in C++11
mode)
A C99, C++11 or POSIX implementation that does not provide hypot is non-conforming.
So it's a matter of working around defects. It's probably due to reliance on Microsoft's libc, which doesn't have this symbol defined (though it does have it as _hypot).
Right, but remember there is is no ::hypot in C++11, only std::hypot.
John.
______________________________**_________________ Unsubscribe & other changes: http://lists.boost.org/** mailman/listinfo.cgi/boost<http://lists.boost.org/mailman/listinfo.cgi/boost>
I had this issue a long time ago, and the answer I received at the time was: http://boost.2283326.n4.nabble.com/Boost-Python-Compile-Error-s-GCC-via-MinG... It's Python. Out-of-the-box Python 2.7 pyconfig.h on Windows defines
hypot as _hypot which subsequently cripples the declaration of hypot in <math.h> and ultimately breaks the using declaration in <cmath> .
A simple fix is to include <cmath> before including <boost/python.hpp> . Other than that, you may try configuring python yourself via autoreconf.