简体   繁体   English

如何使用新的Visual Studio 2013预览构建增强功能?

[英]How do I build boost with new Visual Studio 2013 preview?

When trying to build Boost 1.54 for Visual Studio 2013 Preview (MSVC12) it warns: 在尝试为Visual Studio 2013 Preview (MSVC12)构建Boost 1.54时 ,它警告:

Unknown compiler version - please run the configure tests and report the results 未知的编译器版本 - 请运行配置测试并报告结果

and then fails with error: 然后失败并出错:

boost_1_54_0\\boost/iterator/detail/facade_iterator_category.hpp(166) : error C2039: 'assert_not_arg' : is not a member of 'boost::mpl' boost_1_54_0 \\ boost / iterator / detail / facade_iterator_category.hpp(166):错误C2039:'assert_not_arg':不是'boost :: mpl'的成员

And looks like old libs from MSVC11 are not compatible. 看起来像MSVC11的旧库不兼容。

I really-really want to test new IDE/Compiler version and need boost. 我真的非常想测试新的IDE / Compiler版本,需要提升。 So, is it possible to use boost with new Visual Studio 2013 Preview? 那么,是否可以在新的Visual Studio 2013预览版中使用boost?

Yes. 是。 It is possible. 有可能的。

Possible solutions are: 可能的解决方案是

  1. Try build Boost 1.53 : not too fresh, but for some strange reason it builds just fine. 尝试构建Boost 1.53 :不是太新鲜,但由于一些奇怪的原因,它构建得很好。
  2. If you really-really need Boost 1.54 (new Log library looks good :) ), try to apply this diff-patch to your Boost 1.54 distributive. 如果你真的需要Boost 1.54(新的Log库看起来不错:)),尝试将这个 diff-patch应用到你的Boost 1.54分配中。 It is best suited for revision 84920, but you can try any other too. 它最适合修订版84920,但您也可以尝试其他任何版本。 Note that I am not author of this patch. 请注意,我不是此修补程序的作者。
  3. Try to get latest revision with Subversion : svn co http://svn.boost.org/svn/boost/trunk boost-trunk . 尝试使用Subversion获取最新版本: svn co http://svn.boost.org/svn/boost/trunk boost-trunk For a time when you reading this, issue can be already fixed by contributors. 在您阅读本文时,问题可以由贡献者修复。

EDIT: 26 aug 2013 编辑:2013年8月26日

Looks like boost folks fixed these issues. 看起来像促进人员解决了这些问题。 Latest SVN revision svn co http://svn.boost.org/svn/boost/trunk boost-trunk builds fine. 最新的SVN版本svn co http://svn.boost.org/svn/boost/trunk boost-trunk构建良好。 Thanks to them! 谢谢他们!

EDIT: 4 dec 2013 编辑:2013年12月4日

Quote from TheArtTrooper comment: 引用TheArtTrooper评论:

Boost 1.55.0 builds with the Visual Studio 2013 RTM without any additional patches 使用Visual Studio 2013 RTM构建1.55.0版本,无需任何其他补丁

Happy boosting! 快乐的提升!

If you use the auto-linking boost feature, you'll also need to patch boost/config/auto_link.hpp. 如果使用自动链接提升功能,则还需要修补boost / config / auto_link.hpp。 I changed the file to: 我将文件更改为:

    // vc10:
#    define BOOST_LIB_TOOLSET "vc100"

#  elif defined(BOOST_MSVC) && (BOOST_MSVC < 1800)

     // vc11:
#    define BOOST_LIB_TOOLSET "vc110"

#  elif defined(BOOST_MSVC)

     // vc12:
#    define BOOST_LIB_TOOLSET "vc120"

#  elif defined(__BORLANDC__)

I was able to build Boost 1.54 (and a project depending on it) thanks to several patches provided by Lars Viklund . 由于Lars Viklund提供了几个补丁,我能够构建Boost 1.54(以及依赖它的项目)。 At the time of the writing, the first two of the patches were committed to the SVN - revision 85177. 在撰写本文时,前两个补丁已提交给SVN - 修订版85177。

我有这个问题与Visual Studio 2013 Update 4和Boost 1.54,更新到Boost 1.57修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM