自己也属于linux新手,再eclipse开发的时候,使用多线程pthread的时候,头文件引入没有问题,但是编译的时候就会报错
main.cpp:(.text+0xce): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
网上说什么projecgt--》settings什么都是扯淡,我又不知道,再说也找不到他们说的那些东西,后来在配置文件里加了phread依赖就好了
debug.mak 文件下,LIBRARY_NAMES := ...... pthread在原有的基础上添加pthread就可以了,注意要有空格