在 windows 上使用 zlib 编译 boost 1.62/1.63

Compiling boost 1.62/1.63 with zlib on windows

我知道这看起来可能是重复的,但它实际上是我遇到的一个新问题。在boost端开工单,但是没人接...(https://svn.boost.org/trac/boost/ticket/12505#comment:12)

我的问题很简单:我正在按照与任何其他提升版本相同的步骤(通过设置 ZLIB_INCLUDE 和 ZLIB_LIBPATH)但是从 1.62 开始我得到一个奇怪的错误:

Name clash for '<pbin.v2\standalone\ac\msvc-14.0\debug\address-model-64\link-static\threading-multi>main.obj'
...
error: Tried to build the target twice, with property sets having                                                                                                                                                                       
error: these incompatible properties:                                                                                                                                                                                                   
error:                                                                                                                                                                                                                                  
error:     -  <dll-path>... <library-path>... <xdll-path>...

我也尝试通过配置自定义用户来做到这一点-config.jam但最终得到相同的错误消息。

对于那些有兴趣的人,如果你应用这个差异(它将与 boost 1.64 一起出现)然后一切正常:https://github.com/boostorg/build/commit/373fb6f76962caca9da109d4fe1e820af996326d?diff=unified