Yes, you are right! Use -D_REENTRANT for compilation whenever you use -lpthread for linking. Sorry, that forgot to mention _REENTRANT flag. ---- Lev Assinovsky Aelita Software Corporation O&S InTrust Framework Division, Team Leader ICQ# 165072909 > -----Original Message----- > From: Lalit Seth [mailto:laalit_seth@xxxxxxxxxxx] > Sent: Tuesday, March 30, 2004 2:45 PM > To: Lev Assinovsky; gcc-help@xxxxxxxxxxx > Subject: RE: -pthread in gcc 3.2 > > > It does make it work but is this enough or do we need more in > terms of libs > and defines as i did came to know that _REENTRANT is also important. > > > >From: "Lev Assinovsky" <LAssinovsky@xxxxxxxxxxxxxxxxxxxx> > >To: "Lalit Seth" <laalit_seth@xxxxxxxxxxx>,<gcc-help@xxxxxxxxxxx> > >Subject: RE: -pthread in gcc 3.2 > >Date: Tue, 30 Mar 2004 12:41:02 +0400 > > > >Use -lpthread instead of -pthread > > > >---- > >Lev Assinovsky > >Aelita Software Corporation > >O&S InTrust Framework Division, Team Leader > >ICQ# 165072909 > > > > > > > -----Original Message----- > > > From: Lalit Seth [mailto:laalit_seth@xxxxxxxxxxx] > > > Sent: Tuesday, March 30, 2004 8:01 AM > > > To: gcc-help@xxxxxxxxxxx > > > Subject: -pthread in gcc 3.2 > > > > > > > > > Hi, > > > > > > I have gcc 3.2 installed on HPUX11.11. > > > but gcc -pthread gves an warning. what may be the cause. as > > > gcc -v shows > > > thread model as POSIX. > > > how can i replace -pthread with appropiate libraries and defines. > > > > > > Rgds > > > Lalit > > > > > > _________________________________________________________________ > > > Apply now for a Citibank Suvidha Account. > > > http://go.msnserver.com/IN/45532.asp Get a FREE Citibank > > > Picture=Card=. > > > > > > > > _________________________________________________________________ > Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! > (Limited-time offer) > http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/o nm00200361ave/direct/01/