리눅스에서 C파일 컴파일 도중에 이런 에러가 납니다

guido의 이미지

/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헤더파일 추가하였습니다

해결해주세요 ㅠㅠ

guido의 이미지

해결하엿습니다

세이군의 이미지

gcc -Ipthread mixed.c
->
gcc -Lphtread mixed.c

두개가 똑같아 보이신다면 폰트를 바꿔서 다시 봐주세요.