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

标签 c++ boost zlib

我知道这可能看起来像重复的,但它实际上是我遇到的一个新问题。 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/

相关文章:

c++ - 列表上的冒泡排序——在计算上花费了太多时间

c++ - boost::function 和 boost::bind 是如何工作的

c++ - 将 Qt UI 代码移出到单独的类中

c++ - boost asio tcp ip 写入

c++ - 用 c++11 等价物替换 boost::thread 和 boost::mutex 是否明智?

python - 在 python 中压缩大数据的问题

Node.js:从 s3 下载文件并将其解压缩为字符串

ios - 具有潜在泄漏的Objective-C Zlib方法

尝试在编译时定义变量时出现 C++ C2059 错误

c++ - 使用 bind 或 lambda 将 NULL 函数指针传递给类构造函数