Article View: borland.public.delphi.commandlinetools
Article #375Re: $UNDEF with DCC32
From: Jens Berke
Date: Tue, 28 Sep 2004 10:14
Date: Tue, 28 Sep 2004 10:14
20 lines
1812 bytes
1812 bytes
Jan Doggen wrote: > If I set a conditional define MSSQL in the IDE (through Project Options) it > turns up in the .CFG. > If I then call DCC32 -DOracle, my code has both MSSQL and Oracle defined > Can I make a copy of the CFG without the -D, then tell DCC32 to use that? > Or is there an $UNDEF equivalent I can use on the command line? If I remember right, when compiling DPR-files DCC32 uses the combination of the -D parameter and what's in the CFG-file for defines. You could write a script doing the following: - make a backup copy of the original CFG file before compilation - replace "MSSQL" with "ORACLE" in the CFG file - compile - restore the backup of the CFG file HTH Jens -- ____________________________________________________________ email (delete all digits, please): info@11.jensberke.11.de
Technical Details
Message-ID:
<41593973@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!peernews-us.colt.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<415930f7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,79dccdfd6babddc X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 28 Sep 2004 12:14:19 +0200 From: Jens Berke <noreply@jensberke.de> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.commandlinetools Subject: Re: $UNDEF with DCC32 References: <415930f7$1@newsgroups.borland.com> In-Reply-To: <415930f7$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.134.75.180 Message-ID: <41593973@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096366451 80.134.75.180 (28 Sep 2004 03:14:11 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!peernews-us.colt.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail