在Windows上使用Clang 3.8构建增强 [英] building boost with clang 3.8 on windows

查看:60
本文介绍了在Windows上使用Clang 3.8构建增强的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从一些谷歌搜索中可以看出,最近clang对Windows的支持正在改善,而boost对clang的支持也可能有所改善.但是我对于所有这些繁重的编译器配置工作还是相当陌生的,并且对它进行了全新的改进,所以我不确定当前的实际状态是什么.

From some Googling around it seems that clang's support for windows has been improving recently and boost's support for clang may also have improved. But I'm fairly new to all this heavy-lifting compiler configuration stuff and new to boost, so I'm not sure what the current status really is.

我正在尝试运行命令:

 b2 --build-dir=build toolset=clang --build-type=complete stage

这确实在某种程度上有效,但是看着日志被打印到屏幕上,我看到了一些令人担忧的事情:

This does work to some extent, but watching the logs being printed to screen I see a few worrying things:

  • clang-linux.compile.c++....开始的语句,即使我在Windows上也是如此.
  • 12 warnings generated.(或类似名称)也许总是这些是-Wunused-local-typedef,但我不确定.
  • 2 warnings and 8 errors generated(或类似)是否确定构建失败是否存在错误?我应该如何知道Boost的哪个组件构建不正确以及该如何解决?
  • statements starting clang-linux.compile.c++.... even though I am on windows.
  • 12 warnings generated. (or similar) perhaps always these are -Wunused-local-typedef, but I'm not sure.
  • 2 warnings and 8 errors generated (or similar) surely if there are errors the build has failed? How am I supposed to know which component of boost has not built properly and what can I do to fix this?

我不清楚我是否需​​要MSVC编译器,Visual Stufio IDE和/或MinGW,是否需要手动设置标志以传递给编译器?也许clang + boost尚未准备好用于Windows?

I'm not clear whether I need MSVC the compiler, Visual Stufio the IDE, and/or MinGW and whether I need to manually set flags to pass to the compiler? Perhaps clang+boost is not ready for windows yet?

最终我想使用boost.python,以后可能会使用boost.coroutine.

Ultimately I want to use boost.python, and at a later date maybe boost.coroutine.

想必我想在自己的项目中使用clang吗?我也需要用clang编译boost吗?

Presumably if I want to use clang for my own projects I need to compile boost with clang too?

推荐答案

bootstrap --with-toolset=clang-win
b2 toolset=clang-win

确保clang.exe在您的PATH上.

Make sure that clang.exe is on your PATH.

这篇关于在Windows上使用Clang 3.8构建增强的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆