페이지

2010년 4월 3일 토요일

POSiX + Eclipse

Porject -> Properties로 이동

c/c++ build -> GCC C Compiler -> Miscellaneous에 -lpthread option 추가.

c/c++ build -> Settings -> GCC C Linker -> Libraries에 pthread library 추가

Compile
gcc -O0 -g3 -Wall -c -fmessage-length=0 -lpthread -omain.o ..\main.c

Link
gcc -oOpenMPPC.exe main.o -lpthread
와 같이 나오면 성공

댓글 없음: