我知道这可能看起来像重复的,但它实际上是我遇到的一个新问题。 boost 端打开了一张票,但没有人应答... ( https://svn.boost.org/trac/boost/ticket/12505#comment:12 )
我的问题很简单:我遵循与任何其他 boost 版本相同的步骤(通过设置 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>...
我还尝试通过配置自定义 user-config.jam 来实现此目的,但最终得到了相同的错误消息。
最佳答案
对于那些感兴趣的人,如果您应用这个 diff(它将伴随 boost 1.64),那么一切都会正常工作:https://github.com/boostorg/build/commit/373fb6f76962caca9da109d4fe1e820af996326d?diff=unified .
关于c++ - 在windows上使用zlib编译boost 1.62/1.63,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41543505/