【发布时间】:2018-02-22 18:06:05
【问题描述】:
按照http://www.boost.org/doc/libs/1_62_0/libs/python/doc/html/tutorial/tutorial/hello.html的指示
我在文件夹的目录(C:\Program Files\boost\boost_1_65_1\libs\python\example\tutorial)输入bjam,得到如下错误:
...found 12 targets...
...updating 5 targets...
compile-c-c++ hello.obj
hello.cpp
hello.cpp(7): fatal error C1083: Cannot open include file: 'boost/python/module.hpp': No such file or directory
call "C:\Users\trg\AppData\Local\Temp\b2_msvc_14.1_vcvars32_.cmd" >nul
cl /Zm800 -nologo @"hello.obj.rsp"
...failed compile-c-c++ hello.obj...
...skipped <p.>hello_ext.dll for lack of <p.>hello.obj...
...skipped <p.>hello_ext.pdb for lack of <p.>hello.obj...
...skipped <p.>hello for lack of <p.>hello_ext.dll...
...failed updating 1 target...
...skipped 4 targets...
如上返回,错误为:fatal error C1083: Cannot open include file: 'boost/python/module.hpp': No such file or directory。使用bjam 成功安装了 boost C++ 库。我使用 Eclipse 编辑 C++ 并且所有 #include <boost/whatever> 行似乎都能够无错误地编译。
有人对如何解决这个问题有任何建议吗?
【问题讨论】:
标签: boost-python bjam