作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
尝试运行 Boost 的 bcp 工具时,出现以下错误:
**** exception(205): std::runtime_error: The Boost path appears to have been incorrectly set: could not find boost/version.hpp in
******** errors detected; see standard output for details ********
错误消息与上面完全一样,它尝试搜索的路径为空。我尝试通过设置 BOOST_ROOT 环境变量来解决它,但同样的错误又回来了,搜索到的路径仍然是空的。系统为Mac OS X 10.9.1。
最佳答案
好的,我通过添加以下命令行选项解决了这个问题:
--boost=/path/to/boost_directory
我曾天真地假设 bcp 会在应该设置的环境变量中找到这个目录,因为文档中的大多数示例都没有包含该选项。现在我在文档中看到,如果未指定该选项,“则假定当前路径是 Boost 树的根目录”。
http://www.boost.org/doc/libs/1_55_0/tools/bcp/doc/html/index.html#bcp.syntax.options
关于c++ - 运行 boost bcp 工具时出错 : "The Boost path appears to have been incorrectly set",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20915123/
我是一名优秀的程序员,十分优秀!