如何使用新的 Visual Studio 2013 预览版构建 boost?

2023-07-20C/C++开发问题
3

本文介绍了如何使用新的 Visual Studio 2013 预览版构建 boost?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

尝试为 Boost 1.54 时.com/visualstudio/eng/2013-preview">Visual Studio 2013 Preview (MSVC12) 它警告:

When trying to build Boost 1.54 for Visual Studio 2013 Preview (MSVC12) it warns:

未知编译器版本 - 请运行配置测试并报告结果

Unknown compiler version - please run the configure tests and report the results

然后失败并出现错误:

boost_1_54_0oost/iterator/detail/facade_iterator_category.hpp(166):错误 C2039:assert_not_arg":不是boost::mpl"的成员

boost_1_54_0oost/iterator/detail/facade_iterator_category.hpp(166) : error C2039: 'assert_not_arg' : is not a member of 'boost::mpl'

看起来来自 MSVC11 的旧库不兼容.

And looks like old libs from MSVC11 are not compatible.

我真的真的很想测试新的 IDE/编译器版本并且需要提升.那么,是否可以在新的 Visual Studio 2013 预览版中使用 boost?

I really-really want to test new IDE/Compiler version and need boost. So, is it possible to use boost with new Visual Studio 2013 Preview?

推荐答案

是的.这是可能的.

可能的解决方案是:

  1. 尝试构建 Boost 1.53:不太新鲜,但出于某种奇怪的原因,它构建了很好.
  2. 如果您真的需要 Boost 1.54(新的日志库看起来不错:)),请尝试应用 this diff-patch 到您的 Boost 1.54 发行版.它最适合修订版 84920,但您也可以尝试任何其他版本.请注意,我不是此补丁的作者.
  3. 尝试使用 Subversion 获取最新版本:svn co http://svn.boost.org/svn/boost/trunk boost-trunk.在您阅读本文时,贡献者已经解决了问题.
  1. Try build Boost 1.53: not too fresh, but for some strange reason it builds just fine.
  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. It is best suited for revision 84920, but you can try any other too. 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. For a time when you reading this, issue can be already fixed by contributors.

2013 年 8 月 26 日

看起来 boost 人员解决了这些问题.最新的 SVN 修订版 svn co http://svn.boost.org/svn/boost/trunk boost-trunk 构建良好.感谢他们!

Looks like boost folks fixed these issues. Latest SVN revision svn co http://svn.boost.org/svn/boost/trunk boost-trunk builds fine. Thanks to them!

2013 年 12 月 4 日

引自 TheArtTrooper 评论:

Quote from TheArtTrooper comment:

Boost 1.55.0 使用 Visual Studio 2013 RTM 构建,没有任何附加补丁

Boost 1.55.0 builds with the Visual Studio 2013 RTM without any additional patches

快乐提升!

这篇关于如何使用新的 Visual Studio 2013 预览版构建 boost?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6