Article View: borland.public.delphi.commandlinetools
Article #119Re: DCC32 + Defines
From: Mitch
Date: Tue, 07 Mar 2006 22:39
Date: Tue, 07 Mar 2006 22:39
33 lines
2314 bytes
2314 bytes
Jesper Hogstrom (Borland) wrote:
> Mitch wrote:
>
>> I've been struggling to ues DCC32 and the project CFG file to automate
>> the build of a large project containing several executables and 100's
>> of units. After struggling to get the paths set I found that it wasn't
>> correctly evaluating some IFDEF's in my code. Despite the fact that a
>> directive was not defined it would treat it as defined. I finally
>> worked around the problem by adding an UNDEF in each unit that
>> evaluated it.
>>
>> {$IFDEF REPORTWORKS}
>> {$UNDEF ROCKWORKS}
>> {$ENDIF}
>>
>> This doesn't seem the right way to do this and I'm sure I must be
>> missing something.
>
>
> How does your various config files look? What if you compile with
> --no-config, are the defines still set?
>
> --Jesper
I don't think it would compile at all without the config. The config is
fairly large with all the paths to units and libraries that I needed. I
need to go back and remove some extra path stuff that really isn't
needed. I used the IDE generated CFG as the starting point and added
path stuff until it would compile. I could post it if you really want to
take a look. I should have mentioned that I'm using D7 Pro.
Mitch
Mitch
Technical Details
Message-ID:
<440e0b97$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<440dc747$1@newsgroups.borland.com> <440e079d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,cef2d0d351fc6255 X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 07 Mar 2006 15:39:21 -0700 From: Mitch <mitch.ABB@rockware.com> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.commandlinetools Subject: Re: DCC32 + Defines References: <440dc747$1@newsgroups.borland.com> <440e079d$1@newsgroups.borland.com> In-Reply-To: <440e079d$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 72.16.142.180 Message-ID: <440e0b97$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141771159 72.16.142.180 (7 Mar 2006 14:39:19 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail