🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #142

interviews/libg help requested

#142
From: Howard Moftich
Date: Fri, 31 Jul 1992 20:01
54 lines
2798 bytes
Hi,

I'm trying to build the Interviews kit which I just got off of interviews.stanford
and after a bit of mucking around, I have gotten most of it to compile with
gcc 2.2.2 and libg++-2.2.  But, g++ complains about the following line of code:

  istream in(strlen(definition) + 1, definition);

The error message is:
./catalog.c:1596: bad argument 0 for function 'istream::istream(struct streambuf*,
  class ostream* (=0))' (type was int)
./catalog.c:1596: in base initialization for class 'istream'


which is in catalog.c module of the Unidraw directory.  After much
looking around (and knowing precisely zero about C++, and I'm no C
whiz either), I find that libg may be the culprit since the WHATS.NEW
file mentions incompatibility between the old streams package and the
newest version.  In the old-stream/istream.h file, there is what
appears to be numerous prototypes of the type of params that can be
passed to istream.  One of them is:

istream(int sz, char* buf, int sk=1,ostream* t = 0);

That would appear(!) to be the type of prototype I need.  That is
conjecture on my part.  I'm really pretty lost at the moment.  Do I
have to go back to the old stream classes (by re-defining IO_DIR in
the old-stream Makefile)?  Since the include files and lib are already
installed, what would I have to do to fix this?

Second problem:

In catcmds.c, the 3 lines (at line # 271,359 and 403) that are:

        domain = (domain == nil) ? "component" : domain;

Cause a: 

./catcmds.c: In method 'void ViewCompCmde::Execute ();:
./catcmds.c:271: assignment between incompatiable pointer types
 
type of error.

Any help to track down and eradicate these problems would be very
appreciated.

+------------------------------------------------------------------------------+
| Howard Moftich                                   UUCP:  uunet!lsilwm!howardm |
| SneakerNet:  LSI Logic Corp.                 Internet: howardm@wms1.lsil.com |
|              9 Hillside Ave.                LSI PROFS:   howardm at milsys01 |
|              Waltham, MA 02154 USA              AT&T DeathStar: 617.890.0180 |
|                                                            FAX: 617.890.6158 |
| No matter how cynical I get, I can`t keep up with reality                    |
+------------------------------------------------------------------------------+
Technical Details
Message-ID: <9207312001.AA04853@wms1.lsil.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!UUNET.UU.NET!lsilwm!howardm

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!UUNET.UU.NET!lsilwm!howardm
From: lsilwm!howardm@UUNET.UU.NET (Howard Moftich)
Subject: interviews/libg help requested
Message-ID: <9207312001.AA04853@wms1.lsil.com>
Sender: news@shelby.stanford.edu (USENET News System)
Organization: LSI Logic Corporation, Waltham Design Center
Date: Fri, 31 Jul 1992 20:01:17 GMT
Lines: 54