我正在尝试在 Windows 7(版本 6.1.7601)上安装 boost v.1.54。安装了带 mingw、gcc 和 g++ 编译器的 cygwin。
我需要使用“stage”参数来构建 boost ;但是它会产生以下错误:
C:\boost\tools\build\v2>b2 --prefix="C:\boost_build" toolset=gcc --build type=complete gcc stage
notice: could not find main target stage
notice: assuming it is a name of file to create.
don't know how to make <e>stage
...found 1 target...
...can't find 1 target...
C:\boost\tools\build\v2>
到目前为止,我还没有收到来自 boost-build 社区的回复。如果您能指出正确的方向,我将不胜感激。
补充说明:
- 我正在使用 Windows 命令提示符,gcc/g++ 编译器在 路径并在之前进行了测试。
- 我在构建命令之前运行了 Bootstrap 。
- 我正在运行来自“boost\tools\build\v2”的命令 指南中已说明。
- 没有'stage'选项参数的构建过程是 成功。
最佳答案
我相信这个问题的正确解决方案是从 C:\boost 文件夹而不是 C:\boost\tools\build\v2 文件夹运行你的命令,在 --build-type 中使用破折号。希望对您有所帮助。
关于c++ - 用于构建 boost : "don' t know how to make <e>stage"的“阶段”参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18724579/