运行提升 bcp 工具时出错:"The Boost path appears to have been incorrectly set"
Error running boost bcp tool: "The Boost path appears to have been incorrectly set"
尝试运行 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
相关文章:
- "error: no matching function for call to"构造函数错误
- 调用专用模板时出错"no matching function for call to [...]"
- C++ Singleton - Prevent ::instance() to variable
- 我的项目不会像"undefined reference to `grpc::g_core_codegen_interface'"那样使用未定义的引用错误进行编译
- Visual Studio Code "undefined reference to `WinMain@16'"
- 使用 GCC 卸载的 OpenMP 卸载失败,并出现"Ptx assembly aborted due to errors"
- 如何解决"invalid conversion from 'char' to 'const char*'"
- 使用 MATLAB 编码器生成C++代码:编译错误"undefined reference to `rgb2gray_tbb_real64'"
- 尝试链接我的着色器时,我收到错误代码"error c5145 must write to gl_position"
- Python str to C++ to Python str
- 为什么创建友元类的实例会导致"undefined reference to"错误?
- System.InvalidCastException - SQL to C++ - safe_cast<float>
- 使用 cmake 的 Linux 终端上的"Conversion to non-scalar type is requested"错误
- "no matching function for call to 'Vector::Vector'"错误
- vector<vector<double>> to mxArray using memcpy
- Tensorflow c++ api undefined reference to 'tflite::D efaultErrorReporter()'
- 当覆盖存在时调用基本虚拟"binded to object"函数
- OpenGL VBO Indexing ( How to compute Index Array)
- 为什么我会" void value not ignored as it ought to be"?
- 运行提升 bcp 工具时出错:"The Boost path appears to have been incorrectly set"