导入头文件 在 linux 中开发多线程程序,在使用到 pthread 系列函数的文件中,需要导入头文件:#include <pthread.h> 链接 libpthread.a 在编译的时候,需要链接 libpthread.a 库 eclipse 中添加 libpthread.a 库:Project -> Properties -> C/C++ Build -> Settings -> GCC C Linker -> Libraries1. 在 Libraries(-l) 中添加 pthread2. 在 Libraries search path(-L) 中添加 crypto