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
If you should ever have occasion to #include "python.h" directly in a translation unit of a program using Boost.Python, use #include "boost/python/detail/wrap_python.hpp" instead. It handles several issues necessary for use with Boost.Python...
Additionally, we are to ensure that any Python headers are included before system/platform headers.
Be sure not to #include any system headers before wrap_python.hpp. This restriction is actually imposed by Python, or more properly, by Python's interaction with your operating system.
Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included.
The text was updated successfully, but these errors were encountered:
SwooshyCueb
changed the title
Use Boost's include wrapper for Python.h, and use it before any system includes
Use Boost's include wrapper for Python.h, and use python includes before any system includes
May 22, 2023
According to Boost's documentation, we shouldn't be
#include
ingPython.h
directly:Additionally, we are to ensure that any Python headers are included before system/platform headers.
From Boost's documentation:
From Python's documentation:
The text was updated successfully, but these errors were encountered: