This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]