Linux编程时使用gcc编译.c出现如下问题,pthread.c:(.text+0x29): undefined reference to `pthread_create'collect2: err

Linux编程时使用gcc编译.c出现如下问题编程 client.c:(.text+0x13e): undefined reference to `pthread_create' collect2: ld 返回 1  编译 解决方法以下: 只需在用gcc编译时加上-pthread选项便可。thread 缘由:没有连接上pthread库cli
相关文章
相关标签/搜索