Article View: comp.windows.interviews
Article #782Re: IV3.1 beta3 build problems
From: mrs
Date: Tue, 06 Oct 1992 22:13
Date: Tue, 06 Oct 1992 22:13
33 lines
1752 bytes
1752 bytes
Gee, seems like I answer this question every other day! Use the gcc.xtar.Z compiler in pub/contrib/g++@interviews.stanford.edu See the README-3.1-beta2 for details. If you don't have ftp access, wait until 2.3 is out, as it should fix these problems. In article <MALCOLMP.92Oct6100429@hydra.maths.unsw.EDU.AU> you write: >In article <ROBERTS.92Oct1155751@studguppy.lanl.gov> >roberts@studguppy.lanl.gov (Doug Roberts) writes: > > g++ -Dcplusplus_2_1 -DNOSTDHDRS -DX_WCHAR -DX_LOCALE > -I../../../.././src/include -pipe -c ../catcmds.c > ../catcmds.c: In method `void ivViewCompCmd::Execute ()': > ../catcmds.c:283: assignment between incompatible pointer types > ../catcmds.c: In method `void ivSaveCompCmd::Execute ()': > ../catcmds.c:370: assignment between incompatible pointer types > ../catcmds.c: In method `void ivSaveCompAsCmd::Execute ()': > ../catcmds.c:417: assignment between incompatible pointer types > *** Error code 1 > >These errors are generated from the second line of the following code: > > const char* foo = blat(); > foo = (foo == nil) ? "blat" : foo; > >Which for some reason g++ doesn't like. If you change the offending line to > > if (foo == nil) foo = "blat"; > >it works like a charm. I think this is another bug in g++ :-(
Technical Details
Message-ID:
<9210061514.aa00744@kithrup.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!KITHRUP.COM!mrsReferences:
<MALCOLMP.92Oct6100429@hydra.maths.unsw.EDU.AU>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!KITHRUP.COM!mrs From: mrs@KITHRUP.COM Subject: Re: IV3.1 beta3 build problems Message-ID: <9210061514.aa00744@kithrup.com> Sender: mrs@kithrup.com Reply-To: Mike Stump <mrs@cygnus.com> Organization: Internet-USENET Gateway at Stanford University References: <MALCOLMP.92Oct6100429@hydra.maths.unsw.EDU.AU> Date: Tue, 6 Oct 1992 22:13:45 GMT Lines: 33