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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lpthread?

Status
Not open for further replies.

Miquella

Programmer
Mar 11, 2005
41
US
I'm not quite sure what the problem is, but we're trying to create a multi-threaded server. But every time we do, when the main thread creates the second thread, it crashes with a SEG FAULT.

We are not quite sure what is causing this, but when we compile with -lpthread, it works fine.

If anyone has some enlightenment for this, please let me know!

Thanks,
Miq
 
One other thing I forgot to mention: I'm compiling it on SuSE 10 and Gentoo 2005.1, both places I get the SEG FAULT.

But when I compile the same exact code on the Mac, no problem what-so-ever!

The confusion grows...

Thanks again,
Miq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top