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
When I tried to include #include <boost/numpy.hpp>
error occurs: In file included from /usr/include/boost/python/detail/prefix.hpp:13:0, from /usr/include/boost/python/args.hpp:8, from /usr/include/boost/python.hpp:11, from /usr/local/include/boost/numpy/dtype.hpp:13, from /usr/local/include/boost/numpy.hpp:13, from exportModule.h:9, from common.h:42, from main.cpp:45: /usr/include/boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python. #error Python 2.2 or higher is required for this version of Boost.Python. ^ Makefile.sample_detection:96: recipe for target '../bin/chobj/main.o' failed
The text was updated successfully, but these errors were encountered:
This looks like a problem with Boost.Python, not just Boost.NumPy, so you might be better of asking on https://github.com/boostorg/python. If you can lose a recent version of Boost.Python you should also not need to use this version of Boost.NumPy, as it has now been incorporated within Boost.Python itself.
My best guess on your actual problem is you do not have Python.h in your compiler's include path, but you will need to provide a lot more information about what you are actually doing to get much help beyond that here or elsewhere.
When I tried to include
#include <boost/numpy.hpp>
error occurs:
In file included from /usr/include/boost/python/detail/prefix.hpp:13:0, from /usr/include/boost/python/args.hpp:8, from /usr/include/boost/python.hpp:11, from /usr/local/include/boost/numpy/dtype.hpp:13, from /usr/local/include/boost/numpy.hpp:13, from exportModule.h:9, from common.h:42, from main.cpp:45: /usr/include/boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python. #error Python 2.2 or higher is required for this version of Boost.Python. ^ Makefile.sample_detection:96: recipe for target '../bin/chobj/main.o' failed
The text was updated successfully, but these errors were encountered: