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

Compiling boost 1.62/1.63 with zlib on windows

本文关键字:boost 编译 zlib Windows      更新时间:2023-10-16

我知道这可能看起来像是重复的,但这实际上是我遇到的一个新问题。助推器方面打开了一张票,但没有人回答......(https://svn.boost.org/trac/boost/ticket/12505#comment:12)

的问题很简单:我正在遵循与任何其他增强版本相同的步骤(通过设置 ZLIB_INCLUDE AND ZLIB_LIBPATH),但从 1.62 开始,我收到一个奇怪的错误:

Name clash for '<pbin.v2standaloneacmsvc-14.0debugaddress-model-64link-staticthreading-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>...

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

对于那些

感兴趣的人,如果你应用这个差异(它将伴随着boost 1.64),那么一切正常:https://github.com/boostorg/build/commit/373fb6f76962caca9da109d4fe1e820af996326d?diff=unified。