-
Notifications
You must be signed in to change notification settings - Fork 212
''::hypot' has not been declared' and 'undefined reference to `__imp_Py_InitModule4'' errors for mingw-w64 builds on Windows #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm inclined to remove the numeric module entirely, as we now have Boost.NumPy. Are you a user of the numeric module, or only reporting the build failure ? |
Just reporting build failure, since it broke whole Boost.Python module build. |
OK, I have removed the |
Downloaded fresh Boost.Python dev branch, made sure it contain PR 2d1f66f, made builds using mingw-w64 with |
Have you considered reporting this issue upstream, to |
Nope, didn't consider. But since |
Here is an existing issue: https://bugs.python.org/issue11566, just for the record. |
...plus a PR: python/cpython#880. It looks like this is a bit more involved as CPython and NumPy have different ideas as to how hypot() should behave... |
Created on 2011-03-15. A long play issue. |
I think that issue is indeed solved by adding |
|
Then perhaps it should be defined in |
I also see this issue trying to build Boost.Python with mingw-644/gcc-8.1 on Windows. Adding a _DMS_WIN64 to the command line does not solve anything. I will assume that building Boost.Python with mingw-64/gcc is just broke. |
I should add in my report that I am using Python 2.7.13. |
I'm experiencing the same with Python 3.6.5 |
Hello everyone,
For Boost.Python builds using mingw-w64 on Windows got error:
Reproduced for builds using mingw-w64 with
<Debug|Release> <Shared|Static>
configurations. Not reproduced for builds using ICC or MSVC.Could be fixed by adding
cxxflags="-D_hypot=hypot"
key to Boost build commands (see appropriate topic).If blocker above is fixed, next error appear:
Reproduced for builds using mingw-w64 with
<Debug|Release> Shared
configurations. Not reproduced for builds using ICC or MSVC.Could be fixed by adding
cxxflags="-DMS_WIN64"
key to Boost build commands (see appropriate topic).Both errors above relate to the Python implementation because of definitions:
and
in file
<Python dir>/include/pyconfig.h
Is it possible to fix this issue? E.g. add mentioned preprocessor definitions to Boost.Python build system as a separate rule for mingw-w64 builds on Windows, or something.
Environment:
Alexander
The text was updated successfully, but these errors were encountered: