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
-
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.h
beforenunpy.h
like belowFollowing line in
numpy.h
cause syntax error.pybind11/include/pybind11/numpy.h
Line 1620 in f8a532a
The compiler references
max
inminwindef.h
before looking for themax
macro in thestd
namespace, resulting in a conflict with the::
operator.I solved this by deleting the
std
namespace fromstd::max
in that line or includingwindows.h
afterpybind.h
Beta Was this translation helpful? Give feedback.
All reactions