-
Notifications
You must be signed in to change notification settings - Fork 207
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
build python binding error on windows 10,msvc14,python3.6. #212
Comments
i have the same issue did you find a way to solve it ? |
I have also encountered this issue. It seems to be caused by a header defining rand before boost/python/operators.hpp is included. I found reordering my header files fixed it. |
@fun4jimmy I have this problem too. Plz how to fixed it? Reorder which file? |
@fun4jimmy , "defining" as in macro ? Yuck ! It seems Windows as a habit of doing that... |
Solved. modified cpp files in '\libtorrent-rasterbar-1.1.9\bindings\python\src'. Like @fun4jimmy said, change the order, move '#include "boost_python.hpp"' to the top. |
@stefanseefeld is this problem related to boost ,or libtorrent ? |
I have no idea. It sounds like MSVC defines a rogue macro that conflicts with symbols used in |
The problematic defines are for the alternative operator tokens like The msvc documentation suggests it might be possible to use the |
I suggest you lay out your code in a way that you can #undef the rogue macros prior to including Boost.Python header files, to avoid the above errors. |
If you are using Boost.Asio with Boost.Python, just open the file boost/asio/detail/config.hpp, remove line 73-75. It has been fixed in boost-1.69.0. |
The text was updated successfully, but these errors were encountered: