配置cfree支持c++11测试的时候没成功,能帮忙看一下吗
<pre name="code" class="cpp">#include <iostream>
#include <thread>
using namespace std;
void my_thread()
{
puts("hello, world");
}
int main(int argc, char *argv[])
{
std::thread t(my_thread);
t.join();
system("pause");
return 0;
}
运行报错:[Error] cc1plus.exe: error: unrecognized command line option "-std=c++11"
是为了调用多线程吗,不用支持c++11也可以的,
_ beginthread()就可以运行多线程
可参考
https://blog.csdn.net/tianzry/article/details/61933362