burdick@mentor.cc.purdue.edu (Bill Burdick) (03/05/91)
Well, maybe the port of libg++ wasn't as straight forward as I remembered
it to be... I've had quite a few requests from NeXT users for the changes
I made, so I'm posting this to comp.sys.next.
Here are the changes I made to g++-include/String.h, so that it would compile.
I hope these are correct. This is a diff; the originals are given first and the
modifications are given second...
413c413
< inline StrTmp::StrTmp(StrRep* r) : rep(r) {}
---
> inline StrTmp::StrTmp(StrRep* r) /* : rep(r)*/ {rep = r; }
415c415
< inline StrTmp::StrTmp(String& x) :rep(x.rep) { x.rep = &_nilStrRep; }
---
> inline StrTmp::StrTmp(String& x) /* :rep(x.rep)*/ { rep = x.rep; x.rep = &_nilStrRep; }
417c417
< inline StrTmp::StrTmp(StrTmp& x) :rep(x.rep) { x.rep = &_nilStrRep; }
---
> inline StrTmp::StrTmp(StrTmp& x) /*:rep(x.rep)*/ { rep = x.rep; x.rep = &_nilStrRep; }
That's it: just three lines. I guess there were problems with the constructor
syntax. I just changed it to explicitly initialize the 'rep' member, rather
than use C++'s spiffy implicit initialization syntax.
Hope this helps!
-- Bill
burdick@mentor.cc.purdue.educs4ed3ap@maccs.dcss.mcmaster.ca (Tyldesley A) (03/09/91)
Bill, thanks for the posting on how to patch the include files to g++. A couple of questions the net: 1) Do I need only the include files or do I need libg++.a also? Is there anything other than the above I need to get. 2) What is the correct directory, on the Next, to put these files in. Thanks for your help... Andrew NextMail: andrew%otter@maccs.dcss.mcmaster.ca