This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Deadlock with socket and iostream
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "davisonunicamp" <davisonunicamp at bol dot com dot br>, gcc-help at gcc dot gnu dot org
- Date: Tue, 20 May 2003 12:14:01 -0500
- Subject: Re: Deadlock with socket and iostream
Hi Davison,
Is your GCC compiled with thread safety enabled?
mkdir gccbuild
cd gccbuild
../gcc/configure --enable-languages=c,c++ --enable-threads
Do you need the thread enable compilation switch?
gcc -pthread foo.cpp -o foo
(The -pthread may not be applicable on all platforms.)
--Eljay