Cannot open include file 'thread'

后端 未结 1 1689
予麋鹿
予麋鹿 2020-12-21 06:33

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

fa         


        
相关标签:
1条回答
  • 2020-12-21 07:01

    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.

    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.

    Few more links about C++11 support:

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

    0 讨论(0)
提交回复
热议问题