-
Notifications
You must be signed in to change notification settings - Fork 86
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
Including Boost Python libraries produces C2039 compiler error #130
Comments
Looks like |
It might also be useful to add a workaround to Boost.Python. CC @stefanseefeld. |
Check whether your |
@pdimov Hi Peter, I checked |
The easiest fix then is to upgrade to a more recent Python version, one that no longer has the |
@pdimov Python310 has the #define HAVE_COPYSIGN 1 directive. Does that mean that copysign is still defined in the later Python versions. If I build my Boost library with Python310, then the compiler would not produce the _copysign namespace error. |
|
I have built Boost_1.76 with the following configurations.
I am compiling the project with the following specs.
The compilation generates the following error.
I looked at
python.hpp
andnumpy.hpp
and could only find a reference tostd::cmath
insideboost\python\detail\wrap_python.py
, which is used overboost::core::cmath
. I checked thestd::cmath
header andcopysign
is neither declared nor defined. How do I make sure that my Boost library uses thecopysign
inboost::core::cmath
?The text was updated successfully, but these errors were encountered: