pthread + libstdc++ = segfault

Richard Andrews richarda@ixla.com.au
Wed Dec 13 19:49:00 GMT 2000


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



More information about the Libstdc++ mailing list