[omniORB] use of ofstream::attach

Sai-Lai Lo s.lo@uk.research.att.com
Wed, 1 Aug 2001 11:23:24 -0000


I wonder if you are looking at omniORB 3.0.4 because in it omniNames
uses open() instead of attach() if the compiler is gcc 3. Have a look at
log.cc and see where USE_STREAM_OPEN is defined.

Of course, you can't use gcc 3 right now because of the showstopper bug I've
posted about earlier.

Sai-Lai

----- Original Message -----
From: "David Konerding" <dek@cgl.ucsf.EDU>
To: <omniorb-list@uk.research.att.com>
Sent: Tuesday, July 31, 2001 6:41 PM
Subject: [omniORB] use of ofstream::attach


>
> While compiling the name service from omniORB 3, with the GNU libstdc++ I
noticed
> that the name service uses ofstream::attach, which libstdc++ no longer
> provides.  According to our C++ guru, attach is not a standard part of
ofstream.
> His guess is that omni uses it because there is no ofstream method to
express
> synchronous writes.
>
> I noticed the code was still in omniORB 4, but it's kind of a pain for us
> to use it, since libstdc++ does not provide attach.  STLport does, and
we're
> using that for now but experimentation with libstdc++ and gcc 3.x shows
that
> we may be able to use that in the future.
>
> Thanks,
> Dave
> --------------------------------------------------------------------------
---
> David Konerding
> Email: dek@cgl.ucsf.edu
> WWW: http://www.cgl.ucsf.edu/home/dek
> --------------------------------------------------------------------------
---
>
>
>