You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a trivial issue I found while working in a Windows environment, so I'm sharing it.
I am working based on following docoment,
https://docs.microsoft.com/en-us/visualstudio/python/working-with-c-cpp-python-in-visual-studio?view=vs-2022
If you include
windows.hbeforenunpy.hlike belowFollowing line in
numpy.hcause syntax error.pybind11/include/pybind11/numpy.h
Line 1620 in f8a532a
The compiler references
maxinminwindef.hbefore looking for themaxmacro in thestdnamespace, resulting in a conflict with the::operator.I solved this by deleting the
stdnamespace fromstd::maxin that line or includingwindows.hafterpybind.hBeta Was this translation helpful? Give feedback.
All reactions