Boost logo

Boost :

Subject: Re: [boost] [clang] Windows toolset support?
From: Joshua Boyce (raptorfactor_at_[hidden])
Date: 2012-10-28 01:01:39


On Sun, Oct 28, 2012 at 2:38 AM, John Maddock <boost.regex_at_[hidden]>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-MinGW-w64-tp3165793p3166757.html

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.
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk