This is the mail archive of the
mailing list for the libstdc++ project.
Re: pthread + libstdc++ = segfault
- To: libstdc++ at sources dot redhat dot com
- Subject: Re: pthread + libstdc++ = segfault
- From: "H.Ishikawa" <hishikawa at infoteria dot co dot jp>
- Date: Mon, 18 Dec 2000 16:07:13 +0900
>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.
Hi. I encountered to the such case that even I resembled with it.
That the option is not sufficient at the time of building of the libstdc++ in the case of me, was a cause.
Try to configure with --enable-threads=posix option and rebuild.
I think my english is very strange, and I hope someone complements
for my message.