🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52487

How to get libg++-2.1 to use old-streams ?

#52487
From: Walter Rowe
Date: Tue, 07 Jul 1992 21:55
39 lines
2431 bytes
The WHATS.NEW file in libg++-2.1/libg++ implies that you can configure
libg++ to use either the old or new streams code.  For a project I
have, we need the old streams code while we port things over.
However, I do what the following paragraphs state and it doesn't work
because (a) CFLAGS passed to the old-streams make are wrong, and then
(b) once you get them right, gcc -c fails because _IOAPPEND is not
defined.

    --------------------[ WHATS.NEW excerpt ]--------------------
    *** Changes in libg++ version 2.0:
    
    * iostream classes
    
    The major change is that input/output uses the new iostream library.
    The design is based on (but not identical to) iostreams from
    AT&T C++ release 2.x, and the ANSI X3J16/WG21 draft C++ standard.
    
    The iostream classes replace the old stream.  The new
    package provides some compatibility hooks.  Including the
    obsolete <stream.h> (or defining _STREAM_COMPAT) makes 
    more obsolete methods and features available.  However,
    you will probably have to change your code if you have used
    any libg++-specific extensions (such as the File class).
    
    If you want stick with the old stream classes, change the
    definition of IO_DIR in Make.defs (to old-stream).  You will
    also need to 'make depend' in directories that contain depend,
    and then re-configure everything.  Note that the old-stream
    classes are *not* supported and *will* go away in a future release.
    --------------------[ WHATS.NEW excerpt ]--------------------

Has anyone built libg++ 2.1 successfully to use the old-streams?  I am
running a Sun-4 and SunOS 4.1.2 (``configure -target=sun4-sunos4.1'').

Please e-mail responses and I will summarize if the interest is there.
---
Walter Rowe, System Administrator
Robot Systems Division, NIST
<rowe@cme.nist.gov>
Technical Details
Message-ID: <ROWE.92Jul7175542@doc.cme.nist.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!dove!cme!durer!rowe

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,af6ca1ed9e31eeb0,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-07-07 07:37:06 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!dove!cme!durer!rowe
From: rowe@cme.nist.gov (Walter Rowe)
Newsgroups: gnu.gcc.help
Subject: How to get libg++-2.1 to use old-streams ?
Message-ID: <ROWE.92Jul7175542@doc.cme.nist.gov>
Date: 7 Jul 92 21:55:42 GMT
Sender: news@cme.nist.gov
Distribution: gnu
Organization: National Institute of Standards and Technology
Lines: 39
Nntp-Posting-Host: doc