现在的位置: 首页 > 综合 > 正文

undefined reference to ‘pthread_create’问题解决

2018年04月10日 ⁄ 综合 ⁄ 共 161字 ⁄ 字号 评论关闭

当使用Makefile时,出现了undefined
reference to
 '  pthread_create '的问题,编译不成功。通过查阅资料,找到了

解决方法: arm-none-linux-gnueabi-gcc -lrt
-o led_test led_test.c  在gcc 后面加入-lrt 就可以编译成功。(感谢无私奉献的人)

抱歉!评论已关闭.