Deadlock with socket and iostream

Eljay Love-Jensen eljay@adobe.com
Tue May 20 17:14:00 GMT 2003


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



More information about the Gcc-help mailing list