comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: Conditional Compilation
Date: Mon, 25 Sep 2000 02:45:16 GMT
Date: 2000-09-25T02:45:16+00:00	[thread overview]
Message-ID: <39CEE3C5.42E8D8E5@telepath.com> (raw)
In-Reply-To: 8qlri4$gu2$1@nnrp1.deja.com

Robert Dewar wrote:

> In article <8qauu3$7ei$1@nnrp1.deja.com>,
>   Ted Dennison <dennison@telepath.com> wrote:
> > Of course the drawback to this approach is that both
> > alternatives have to be compilable. That makes it suitable for
> > debug messages (as implied above), but unsuitable for making a
> > source file that handles multiple
> > host configurations.
>
> Well in a way it is a big advantage that it all has to be
> compilable. it is only too common to encouter a large C
> file, full of conditional stuff based on say ten different
> condition settings, and you just know that no one has
> systematically done all 1024 compilations, and sure enough
> you try a new combination, and the thing does not even compile,
> let alone work.

Ohhh yeah. I wasted a weekend once trying to get Wolfpack's Empire to
compile on my NT box using gcc. It has a whole mess of conditional
compilation code which assumes Windows means VC++ is being used. That
combined with the macros that detect gcc and pull in other stuff just
wreaked holy hell. A few hours of that is enough to convince anyone that
the man who forbade macros from Ada was a genius.

Of course it was no picnic getting it to work with the newer version of
VC++ I had either. But that's another C gripe for another time.

--
T.E.D.

Home - mailto:dennison@telepath.com  Work - mailto:dennison@ssd.fsi.com
WWW  - http://www.telepath.com/dennison/Ted/TED.html  ICQ  - 10545591





  reply	other threads:[~2000-09-25  2:45 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-19  0:00 Conditional Compilation Kenneth Kueny
2000-09-19  0:00 ` Jeffrey Carter
2000-09-19  0:00   ` Samuel T. Harris
2000-09-20  0:44     ` Robert Dewar
2000-09-19  0:00 ` Ted Dennison
2000-09-19  0:00 ` Richard Riehle
2000-09-19  0:00 ` David Starner
2000-09-19  0:00 ` E. Robert Tisdale
2000-09-19  0:00   ` David Starner
2000-09-20  0:52     ` Robert Dewar
2000-09-19  0:00   ` Larry Kilgallen
2000-09-19  0:00     ` Jeff Allen
2000-09-20  0:49       ` Robert Dewar
2000-09-19  0:00         ` Bobby D. Bryant
2000-09-24  0:00           ` Robert Dewar
2000-09-20  0:47   ` Robert Dewar
2000-10-09  0:00   ` John McCabe
2000-09-20  1:33 ` tmoran
     [not found]   ` <8qauu3$7ei$1@nnrp1.deja.com>
2000-09-24  0:00     ` Robert Dewar
2000-09-25  2:45       ` Ted Dennison [this message]
2000-09-25  0:00         ` peter
     [not found] ` <39CA31F2.E160F0D8@res.raytheon.com>
2000-09-24  0:00   ` Robert Dewar
2001-01-02 13:27 ` Andrew Hately
2001-01-02 16:46   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2000-07-31  0:00 conditional compilation Matthew Woodcraft
2000-07-31  0:00 ` Marin D. Condic
2000-07-31  0:00   ` Ira D. Baxter
2000-08-01  0:00   ` Simon Brady
2000-07-31  0:00     ` Marin D. Condic
2000-08-01  0:00     ` Ted Dennison
2000-08-01  0:00       ` Robert A Duff
2000-08-01  0:00         ` Laurent Guerby
2000-08-02  0:00       ` Simon Brady
2000-08-02  0:00         ` Robert A Duff
2000-08-02  0:00           ` Georg Bauhaus
2000-08-03  0:00             ` Robert A Duff
2000-08-02  0:00           ` Brian Rogoff
2000-08-03  0:00             ` Robert A Duff
2000-08-03  0:00           ` Florian Weimer
2000-08-02  0:00         ` Simon Brady
2000-08-01  0:00           ` William J. Thomas
2000-08-02  0:00         ` Georg Bauhaus
1989-12-12  0:08 Emery
1988-06-13  0:24 Conditional compilation Steinar Haug
1988-06-17 13:53 ` rds
1988-06-22  0:44   ` Jeff Bartlett
1988-06-23 13:01   ` Arny B. Engelson
1988-06-27 18:01     ` Dave Seward
1988-06-29 13:32   ` brucej
1988-06-17 14:48 ` rjs
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox