codeblocks c++11 pthread

支持c++11:

setting->compiler->

打上勾即可。(如果没有c++11,那么请更新codeblocks最新版。)

pthread_create错误:

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

 

有时候代码里不能输入:

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

posted @ 2018-03-23 17:57  jiu~  阅读(297)  评论(0编辑  收藏  举报