[英]How to build Boost (from github) with MASM in Windows?
去年,可以使用以下步骤在Windows中构建Boost(来自模块化boost git存储库)。
差不多一年后,我使用了这个食谱:
C:\\Windows\\WinDDK\\7600.16385.1\\bin\\x86\\amd64; C:\\Windows\\WinDDK\\7600.16385.1\\bin\\x86
bin/
目录添加到Windows路径 boost
的父目录中,运行 git clone --recursive https://github.com/boostorg/boost.git boost > clone.log
bootstrap gcc
project-config.jam
, using msvc ;
更改using msvc ;
using gcc ;
b2 headers
(现在需要进行符号链接) b2 -a -d+2 -q --build-type=complete --build-dir=build toolset=gcc link=shared runtime-link=shared threading=multi
这些对b2
选项可以与早期版本的boost一起使用,但是现在我只能使用不带选项的b2
进行编译。 完整的命令行返回以下错误:
undefined reference to __imp_make_fcontext
,
undefined reference to __imp_jump_fcontext
。
我找不到描述这些错误的其他帖子甚至网页。 有谁知道Windows中仍然可以使用b2
选项从GitHub存储库获得最新提升的方法吗?
编辑 :
使用b2 -a -d+2 -q --build-dir=build toolset=gcc
可以工作。 显然--build-type=complete
选项是上面第一个破坏编译的选项。
标志link=shared
, runtime-link=shared
和threading=multi
也会导致b2
停止。
有没有人知道如何解决这个问题? MinGW是否有适用于当前存储库的补丁?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.