Article View: borland.public.delphi.commandlinetools
Article #210Having trouble with conditional compiling
From: Antti Kurenniemi
Date: Sun, 13 Mar 2005 13:17
Date: Sun, 13 Mar 2005 13:17
24 lines
1672 bytes
1672 bytes
Hello,
I am trying to compile two different versions of an app using a batch file.
All is working nicely, except that I can't make the conditional compiling
work. I have
-DFIRSTVERSION
on the command line, and then
{$IFDEF FIRSTVERSION}
... some code, including setting the main form's caption
{$ENDIF}
in one of the source code files, but it doesn't compile that code. I also
have -B in the command line, to make sure everything is compiled, but still
no go. What could be going wrong? Is the define project level, or source
code file level, and if the latter how do I specify the file in which it
should be turned on?
TIA,
Antti Kurenniemi
Technical Details
Message-ID:
<42343d5f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,f58e0ba947983a18,start X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Antti Kurenniemi" <NOantti@SPAManttikPLEASE.com> Newsgroups: borland.public.delphi.commandlinetools Subject: Having trouble with conditional compiling Date: Sun, 13 Mar 2005 15:17:21 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 62.142.70.243 Message-ID: <42343d5f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110719839 62.142.70.243 (13 Mar 2005 05:17:19 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail