[Ilugc] Threads

  • From: v_krishnakumar77"<v_krishnakumar77@xxxxxxxxxxxxxx (v_krishnakumar77)
  • Date: Wed, 11 Dec 2002 19:02:19 +0530

"Prakash N" wrote:

[snip]

Its giving "undefined reference to pthread_create"

Its a linker error. not a compile error.
add "-lpthread" to the gcc commandline. It will link
in the pthread library. You may also need to add a 
-D_REENTRANT to ensure thread-safe library code.

cheers,
-Krish
PS: apologies for the stupid ad below.


Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy Music, Video, CD-ROMs, Bestseller Books, Gadgets from <A 
href="http://www.store.indiatimes.com";>http://www.store.indiatimes.com</A>

Change the way you talk. Indiatimes presents Valufon, Your PC to Phone service 
with clear voice at rates far less than the normal ISD rates. Go to 
http://www.valufon.indiatimes.com. Choose your plan. BUY NOW.


Other related posts: