花费 16 ms
(笔记)Linux线程编译undefined reference to 'pthread_create'

在使用线程时,使用gcc或arm-linux-gcc编译时,会出现错误:undefined reference to 'pthread_create' 主要是以下两种原因: 1、#include <pthread.h> 请确认头文件是否添加 2、-lpthread ...

Mon Dec 08 20:03:00 CST 2014 0 3791
error: cannot find -lpthread

通过arm-linux-androideabi-gcc 出现“cannot find -lpthread”错误, 解决方案: 将 -lpthread替换为-pthread 附:-pthread 与 -lpthread区别 一般情况下,我们在链接一个(文件名为libxxx.so ...

Tue Feb 19 17:46:00 CST 2019 0 816

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM