i am new to linux network programming. I am facing problem in making threaded TCP Server. I have used pthread.h in the main program. but i am getting error like this ->
[root@www CSockets]# gcc -o thread TCPEchoServer-Thread.c
/tmp/ccmibAQF.o(.text+0xb4): In function `main':
: undefined reference to `pthread_create'
/tmp/ccmibAQF.o(.text+0xfa): In function `ThreadMain':
: undefined reference to `pthread_detach'
collect2: ld returned 1 exit status
How can I remove these error from my program. Are pthread_create() and pthread_detach are not member of pthread.h or how can i replace these functions.
pls quick hint or suggest. U are welcome.