Loading

随笔分类 -  C++

摘要:因为thread是C11新加入的特性,所以我们在用g编译的时候不能直接用,需要在g后面加上 -std=c0x -pthread 如果是gcc编译多线程的话则应该要用 gcc xxx.c -lpthread来编译,因为pthread并不是linux库里面的 -lpthread 是在 -L 的路径下找名 阅读全文
posted @ 2021-01-27 23:56 modao 阅读(645) 评论(0) 推荐(0)