Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Python Compile Error(s) (GCC via MinGW-w64)
From: Joshua Boyce (raptorfactor_at_[hidden])
Date: 2010-12-28 23:26:31


On Wed, Dec 29, 2010 at 3:15 PM, Christopher Schmidt <
mr.chr.schmidt_at_[hidden]> wrote:
>
>
> 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.
>
> BTW. nice project. Keep up the good work!
>
> -Christopher
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

That worked! Thanks to both of you for the the help.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net