带c ++ 11的Visual Studio 2008 [英] Visual Studio 2008 with c++11
本文介绍了带c ++ 11的Visual Studio 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以以某种方式使Visual C ++ 2008具有C ++ 11库并使用C ++ 11标准允许的所有优点吗?
Can I somehow make Visual C++ 2008 to have C++11 library and use all the good things C++11 standard allows?
推荐答案
简而言之,这是不可能的。 VS2008不支持C ++ 11,替换库会导致混乱。
In short words, it's impossible. VS2008 has no C++11 support and replacing the libraries would lead to chaos.
长话短说,您也许可以做些事情:
In long words, you maybe could do something:
- 使用其他编译器: C ++编译器支持(更新的链接)
- 您可以升级Visual Studio,但即使是MSVC12(Visual Studio 2013)也不支持所有
- 您可以将Intel编译器嵌入到Visual Studio中。但是,英特尔还没有完全支持C ++ 11,而不仅仅是MSVC。 此处( 更新的链接现在提供一般说明)一个如何嵌入英特尔编译器的小方法。
- 更新:还可以与Visual Studio一起使用,请参见此处。
- 更新:正如Melebius在评论中所述,MSVC19(VS2015)最终支持大多数C ++ 11标准... 支持C ++ 11/14/17功能(现代C ++)
- Use another compiler: C++ compiler support (Updated Link)
- You could upgrade your visual studio, but even MSVC12 (visual studio 2013) is not supporting all of C++11 standard.
- You could embed the Intel compiler into your visual studio. But also Intel is not fully supporting C++11, nevertheless more than MSVC. Here (Updated link now provides a general description) a small howto embed the Intel compiler.
- Update: clang is now also able to be used with visual studio, see here.
- Update: As Melebius stated in the comments, MSVC19 (VS2015) finally supports most of the C++11 standard... Support For C++11/14/17 Features (Modern C++)
这篇关于带c ++ 11的Visual Studio 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文