This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

Re: Thread deadlock problem with cout


On 20 Jul 2000 at 22:11 (-0400), Craig Rodrigues wrote:
| Hi,
| 
| I downloaded the latest snapshots of libstdc++ from rawhide.redhat.com.
| 
| Now, if I compile the attached program, it seems to deadlock on the
| cout.  If I change the cout statement to a printf, it does not
| deadlock, so I am assuming some threading problems in libstdc++.

not a (threading) problem here. the test program compiled and ran fine...
_after_ I added 'using namespace std;' to it. 

can you see what flags were specified when the rpm's binary was 
compiled? IIRC, I had this problem unless gcc was configured with
--enable-threads=posix

glibc-2.1.3
gcc (cvs 20000619)
libstdc++-v3 (cvs 20000720)

hth.
  Brent

-- 
Damon Brent Verner                        o      _     _         _
Cracker Jack? Surprise Certified  _o     /\_   _ \\o  (_)\__/o  (_)
brent@rcfile.org                _< \_   _>(_) (_)/<_    \_| \   _|/' \/
brent@linux1.org               (_)>(_) (_)        (_)   (_)    (_)'  _\o_

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