编译支持c++11
Settings->Compiler->Compiler Settings
勾选Have g++ follow the C++11 ISO C++ language standard确定即可!
使用<thread>库
需要在 linker 的 other options 里添加 -pthread
本文介绍如何在编译器设置中启用C++11标准,并演示了如何通过链接器选项来使用<thread>库实现多线程编程。
编译支持c++11
Settings->Compiler->Compiler Settings
勾选Have g++ follow the C++11 ISO C++ language standard确定即可!
使用<thread>库
需要在 linker 的 other options 里添加 -pthread
1810

被折叠的 条评论
为什么被折叠?