Opened 9 years ago

Last modified 9 years ago

#8818 new Bugs

Python compilation errors with mingw w64/gcc4.8.1

Reported by: Andrew Ho <helloworld922@…> Owned by: Ralf W. Grosse-Kunstleve
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

wrap_python is suppose to undef the evil hypot def by Python, but it doesn't work for mingw w64. Here's a patch which undefs hypot if it's defined at all.

This unfortunately does not fix all boost python compilation errors with Mingw w64/gcc4.8.1 (targetting x64 Windows).

Attachments (1)

wrap_python.hpp.patch (677 bytes ) - added by Andrew Ho <helloworld922@…> 9 years ago.
patch to undef hypot for mingw w64 (caused by python)

Download all attachments as: .zip

Change History (2)

by Andrew Ho <helloworld922@…>, 9 years ago

Attachment: wrap_python.hpp.patch added

patch to undef hypot for mingw w64 (caused by python)

comment:1 by Andrew Ho <helloworld922@…>, 9 years ago

Looking through the other errors, I actually think my problem is due to my system having the "official" Python Windows release, which IIRC is built with Visual Studio, thus meaning the library won't link properly. I'm guessing in theory compiling python with Mingw w64 and then compiling Boost Python off of that might work, though I can't say for sure.

Note: See TracTickets for help on using tickets.