Subj : Re: Linking without -lpthread doesn't fail?? To : comp.programming.threads From : David Schwartz Date : Wed Oct 05 2005 01:13 pm wrote in message news:1128531642.365986.132700@o13g2000cwo.googlegroups.com... > When I link a program that has pthread_* calls in it yet I forget to > link with -lpthread the program links. It does not work and there is no > indication other that the program not working that I did anything > wrong. Why is that? The short answer is that if you break the rules, then things will break. The longer answer is that some operating systems provide stubs for the pthread_* functions in a (misguided?) effort to allow you to write code that works with or without the threading library. DS .