【发布时间】:2018-03-19 05:26:29
【问题描述】:
我正在从 Boost.Python 页面运行hello world example。
但是我收到了错误消息
Cannot open include file: 'boost/python/detail/prefix.hpp': No such file or directory
我的 CMD 命令只是 bjam
C:\Program Files\boost_1_66_0\boost\ is in PATH 和 prefix.hpp 在C:\Program Files\boost_1_66_0\boost\python\detail\prefix.hpp
hello.cpp如下:
"#include "C:\Program Files\boost_1_66_0\boost\python\module.hpp"
#include "C:\Program Files\boost_1_66_0\boost\python\def.hpp"
#include "C:\Program Files\boost_1_66_0\boost\python\detail\prefix.hpp"
char const* greet()
{
return "hello, world";
}
BOOST_PYTHON_MODULE(hello_ext)
{
using namespace boost::python;
def("greet", greet);
}
【问题讨论】: