Article View: comp.windows.interviews
Article #766Re: IV3.1 beta3 build problems
From: malcolmp
Date: Tue, 06 Oct 1992 00:04
Date: Tue, 06 Oct 1992 00:04
27 lines
1708 bytes
1708 bytes
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++ :-( -- Malcolm Purvis (malcolmp@hydra.maths.unsw.edu.au) School of Mathematics, UNSW, Sydney, Australia.
Technical Details
Message-ID:
<MALCOLMP.92Oct6100429@hydra.maths.unsw.EDU.AU>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!uwm.edu!rpi!batcomputer!munnari.oz.au!metro!usage!newsReferences:
<ROBERTS.92Oct1155751@studguppy.lanl.gov>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!uwm.edu!rpi!batcomputer!munnari.oz.au!metro!usage!news From: malcolmp@hydra.maths.unsw.EDU.AU (malcolmp) Subject: Re: IV3.1 beta3 build problems In-Reply-To: roberts@studguppy.lanl.gov's message of Thu, 1 Oct 1992 22:57:51 GMT Message-ID: <MALCOLMP.92Oct6100429@hydra.maths.unsw.EDU.AU> Lines: 27 Sender: news@usage.csd.unsw.OZ.AU Nntp-Posting-Host: hydra.maths.unsw.edu.au Organization: School of Mathematics, UNSW, Sydney, Australia References: <ROBERTS.92Oct1155751@studguppy.lanl.gov> Date: Tue, 6 Oct 1992 00:04:29 GMT