From: Al Clark (aclark@netcom.com)
Date: 10/14/92


From: aclark@netcom.com (Al Clark)
Subject: Re: iostreams in libg++, NIHCL for linux?
Date: 14 Oct 1992 22:00:50 GMT

In article <garyt.719078355@lgc.com> garyt@lgc.com (Gary Thompson) writes:
>I finally got my hands on a 386 box and just installed Linux for
>the first time using the new SLS package and everything went
>smoothly.
>
>However, I was unable to get anything using iostreams in C++ to
>successfully link. It appeared that the iostreams were not part
>of the libg++ that came with the SLS distribution. Is there a
>a complete libg++.a somewhere?
>
>Along similar lines, has anyone ported the NIH class library to
>Linux yet?
>
>My sincerest thanks and respect to everyone who has contributed
>to this fantastic package (I hope to contribute some as well) !!
>
>Gary
>--
  I am using 2.2.2d without jumptables, and ostream functions like
       ___ls__FR7ostreamPv
  are found with no problem. But I have another problem.
  (How do I report compiler problems/bugs to FSF???).

  I have been using g++ in a C++ class. The only problem I have
  found is with a friend function overloading "<<" for a class.
  I can't make it work for a template at all, and I have to patch the
  .s file to make it work as a specific type. It generates the routine
  but doesn't call it when an object of the class is referenced.
  (The overloaded function is there, but not called). The call it does
  generate is the one that is used for the address of the object. I do
  a patch like the following one and it works:

*** cca00056.s Wed Oct 14 12:49:56 1992
--- savemode.s Wed Oct 14 12:48:36 1992
***************
*** 200,203 ****
        pushl -16(%ebp)
        pushl $_cout
! call ___ls__FR7ostreamPv
        addl $8,%esp
--- 200,203 ----
        pushl -16(%ebp)
        pushl $_cout
! call ___ls__FR7ostreamPt8database1Zi
        addl $8,%esp

Anyone got any suggestions???

-- 
Al - aclark@netcom.com - My opinions are my own.