Chinaunix

标题: 编译AD测试程序遇到的错误 [打印本页]

作者: hsq863    时间: 2009-09-04 10:47
标题: 编译AD测试程序遇到的错误
jason@jason-desktop:~/JasonHan/ADC$ arm-linux-gcc -g -o adtest main.c
/tmp/cc8TL9pK.o(.text+0x148): In function `main':
/home/jason/JasonHan/ADC/main.c:56: undefined reference to `pthread_create'
/tmp/cc8TL9pK.o(.text+0x1f0):/home/jason/JasonHan/ADC/main.c:69: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
解决方法:
加编译参数-lpthread
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93262/showart_2045261.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2