This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

pthread + libstdc++ = segfault




HELP!!

I can't link libpthread into any C++ programs (in particular libsigc).

eg. test.cpp

int main(int argc , char * argv [] )
{
	return 0;
}

----

If I build it with 

c++ -o test -fhonor-std test.cpp -lpthread

I get a segfault after return 0;

If I build it without -lpthread everything is fine.
The program doesn't use anything in libpthread, but's it's very presence causes the crash.


I'm using

gcc-2.95.2
libstdc++-2.90.8
binutils-2.10.1

on a RedHat6.2 box (i686-pc-linux-gnu)

Thanks all

Rich


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]