리눅스에서 C파일 컴파일 도중에 이런 에러가 납니다
글쓴이: guido / 작성시간: 수, 2010/11/10 - 5:00오후
/tmp/ccalAeoN.o: In function 'main':
mixed.c:(.text+0xa9): undefined reference to 'pthread_create'
mixed.c:(.text+0xa9): undefined reference to 'pthread_join'
collect2: ld returned 1 exit status
파일명은 mixed.c 이고
gcc -Ipthread mixed.c 로 컴파일명령하였고
소스에 pthread헤더파일 추가하였습니다
해결해주세요 ㅠㅠ
Forums:
아
해결하엿습니다
gcc -Ipthread mixed.c
gcc -Ipthread mixed.c
->
gcc -Lphtread mixed.c
두개가 똑같아 보이신다면 폰트를 바꿔서 다시 봐주세요.
댓글 달기