无法打开包含文件'thread'

时间:2013-08-21 20:34:12

标签: c++ multithreading linker include 64-bit

我正在尝试在C ++程序中使用线程函数进行并行循环,但我不能include <thread>,它一直给我错误

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

我正在运行visual studio 2010 express,x64(带有x64编译器选项),我相信我正在运行所有内容的最新版本(Windows SDK 7.1),但我在道具页面中找不到编译器选项版。 (我发现最接近的是平台工具集,设置为v100)

1 个答案:

答案 0 :(得分:2)

您的编译器不支持C ++ 11,因此您需要升级/更改编译器。似乎VS2012支持它:http://msdn.microsoft.com/en-us/library/vstudio/hh567368.aspx

  

对于C ++ 11标准库,我们没有漂亮的功能表,但Visual Studio 2012中的Visual C ++确实实现了它(...)   新标题:atomic,chrono,condition_variable,future,mutex,ratio,scoped_allocator和主题

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

http://cpprocks.com/c11-compiler-support-shootout-visual-studio-gcc-clang-intel/ http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport

相关问题