This topic created in 3813 days ago, the information mentioned may be changed or developed.
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no
configure: error: Missing Pthread Library
请各位大侠帮忙看看该如何解决!
2 replies 2015-11-27 11:13:30 +08:00  | | 1 fxxkgw Nov 27, 2015 makefile 里面加上 pthread 库就可以了 |
 | | 2 fxxkgw Nov 27, 2015 几年没做嵌入式了 我记得以前随便写个.c 文件 只要用了 pthread 系列函数 直接编成 a.out 跑就提示缺少 pthread 库 需要在编的时候链接上 pthread.so 只在 gcc 时候加上-o 参数 |