codeblocks c++11 pthread

支持c++11:

setting->compiler->

codeblocks c++11 pthread

打上勾即可。

Top

pthread_create错误:

由于pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,所以在使用pthread_create创建线程时,在编译中要加-lpthread参数:

codeblocks c++11 pthread

 

Top

有时候代码里不能输入:

因为输入法与codebloks不兼容,使用系统原生的英文输入就好。










本文转自 jiu~ 博客园博客,原文链接:http://www.cnblogs.com/jiu0821/p/8631835.html,如需转载请自行联系原作者