Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in compiling...... pthread routines

Status
Not open for further replies.

goodtalka

Programmer
Jun 11, 2002
12
IN
hi,
I am not able to compile a program(threads related code) which calls pthread_create,pthread_join ... and other pthread routines. It says "undefined reference to pthread_create...(all these funcetions)". I have included pthread.h header. What is wrong here?
 
Did you remember to use the [tt]-lpthread[/tt] switch when compiling?

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top