无法打开包含文件'主题'无法打开、文件、主题

2023-09-07 23:01:07 作者:F5如果刷新對妳的記憶

我试图用一个线程功能,在C ++程序的并行循环,但我不能包括<螺纹> ,它不断给我的错误

I'm trying to use a threaded function for a parallel loop in a C++ program but I can't include <thread>, it keeps giving me the error

fatal error C1083: Cannot open include file: 'thread': No such file or directory

我运行Visual Studio 2010的前preSS,64(使用x64编译器选项),我相信我跑的一切(的Windows SDK 7.1)的最新版本,但我无法找到的选项道具页面编译器版本。 (最近我发现了平台工具套件被设置为V100)

I'm running visual studio 2010 express, x64 (with x64 compiler options) and I believe I'm running the newest version of everything (Windows SDK 7.1) but I can't find an option in the props page for compiler version. (closest i found was Platform Toolset which is set to v100)

推荐答案

您的编译器不支持C ++ 11,所以你需要升级/改变编译器。看来,VS2012支持它: http://msdn.microsoft.com/ EN-US /库/ vstudio / hh567368.aspx 。

Your compiler does not support C++11, so you need to upgrade/change the compiler. It seems that VS2012 supports it: http://msdn.microsoft.com/en-us/library/vstudio/hh567368.aspx.

对于C ++ 11标准库,我们没有特征的pretty的表,但Visual C ++在Visual Studio 2012确实实现它(...)   新标题:原子,时辰,condition_variable,未来,互斥体,比例,scoped_allocator,和线程

As for the C++11 Standard Library, we don't have a pretty table of features, but Visual C++ in Visual Studio 2012 does implement it (...) New headers: atomic, chrono, condition_variable, future, mutex, ratio, scoped_allocator, and thread.

很少有更多的链接关于C ++ 11的支持:

Few more links about C++11 support:

http://cpprocks.com/c11 -compiler支持-枪战视觉工作室-GCC-铛英特尔/ http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport