This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
pthread + libstdc++ = segfault
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: pthread + libstdc++ = segfault
- From: Richard Andrews <richarda at ixla dot com dot au>
- Date: Thu, 14 Dec 2000 14:50:49 +1100
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