c++ - 我无法编译 boost - 找不到 *.o 文件

标签 c++ boost

我正在尝试编译 Boost 库。 我在打字

bootstrap.bat gcc

成功完成,然后

b2 install --prefix=c:/Tools/boost toolset=gcc variant=release

我收到一堆错误:

"g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -mthreads -Wno-variadic-macros -DBOOST_ALL_NO_LIB=1 -DBOOST_ALL_NO_LIB=1,<python>2.7,<target-os>windows:<python.interpreter>C:\Python27\python -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TIMER_STATIC_LINK=1 -DNDEBUG  -I"." -c -o "bin.v2\libs\test\build\gcc-mingw-4.9.2\release\link-static\threading-multi\unit_test_parameters.o" "libs\test\src\unit_test_parameters.cpp"

...failed gcc.compile.c++ bin.v2\libs\test\build\gcc-mingw-4.9.2\release\link-static\threading-multi\unit_test_parameters.o...
gcc.compile.c++ bin.v2\libs\test\build\gcc-mingw-4.9.2\release\link-static\threading-multi\xml_log_formatter.o
File can't be found.

几乎像每个文件一样,没有任何内容被编译。 构建时不应该创建 o 文件吗?可能是什么问题?

最佳答案

您是否尝试过将 prefix 参数添加到 Bootstrap 调用,而不是 b2 调用?通常,这是在设置构建环境时已经需要的信息(这是 Bootstrap 所做的)。

关于c++ - 我无法编译 boost - 找不到 *.o 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37340522/

相关文章:

c++ - 如何初始化数组并将指针传递给派生的基构造函数?

c++ - 如何将 boost beast multi_buffer 转换为字符串?

c++ - Boost.Asio SSL 神秘线程

c++ - 混合基元和 Cocoa 集合时实现可变性

c++ - 如果全局中存在相同的变量,如何访问匿名命名空间变量

c++ - 如何将 int 转换为 const int 以在堆栈上分配数组大小?

c++ - TBB 线程本地集使用combinable 或enumerable_thread_specific?

c++ - 如何让迭代器指向 boost::numeric::ublas::matrix<T> 的一行?

boost - 如何在 boost::geometry 中提供 IntersectionStrategy

c++ - 使用 C++/boost::asio 在网络框架中进行 int/char 转换