How to solve __imp___Py_NoneStruct Error in Boost.Python?
问题 I am trying to link C++ and Python with Boost.Python. I have Visual Studio 2012 Express Version, Python 2.7, and Boost 1.54. I followed the instructions of Boost official website to install Boost on my machine, which means I followed these steps: I download the prebuilt binary and install it at C:\local\boost_1_54\ . I run bjam b2 --build-dir=C:\local\boost_1_54 toolset=msvc11.0 --build-type=complete stage . Then I had such operations in property panel: Add C:\local\boost_1_54\; C:\Python27