ubuntu 下默认是没有pthread库 的 即使在编译的时候 加上 -lpthread 也不行
man不到相关函数
使用下面的指令安装 就可以了
sudo apt-get install glibc-doc
sudo apt-get install manpages-posix-dev
然后在用man -k pthread_create就可以找到了
本文介绍了在Ubuntu系统中安装pthread库的方法。通过使用sudo apt-get install glibc-doc 和 sudo apt-get install manpages-posix-dev 命令进行安装,之后可以通过man -k pthread_create 查找相关函数帮助。
sudo apt-get install manpages-posix-dev
然后在用man -k pthread_create就可以找到了
549

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