sockets - Cannot build C project by using Eclipse in Linux -


i have small project in c programing, eclipse linux. when build error "undefined reference `pthread_create'" @ line

re = pthread_create(&interrupt, null, clienthandler, null); 

i have no idea issue. searched , tried applying solution discussed @ eclipse juno - gcc compiler pthread still appears. so, there way can apply solve it?

here code of mine https://ide.c9.io/nkphuc700/cworkspace, issue fires @ line 51.

error message on console enter image description here

you don't need eclipse build code. afaik, run builder commands (perhaps using make) in turn runs gcc compiler.

you should compile gcc -c -wall -wextra -pthread -g , link
gcc -pthread ...your object files.... -o yourprogram ...your libraries... -lpthread


Popular posts from this blog

debugging - Reference - What does this error mean in PHP? -

How to parse output from sse.client in Python? -