Jason,  I havent been following it... however the issues are :-

1.  Prior to D5, the IDE used a different file to the commandline compiler
for its switches.  In D5 - they royally stuffed it up.  You can not have
different options for the IDe as comapred to teh commandline.  What I do is
that the IDE compilation is for debugging and the commandline one is for
production.

The solution for this - I have command line siwtches in a file called
app.gfc.  In the batch file to make the app, I copy the *.gfc to *.cfg thus
overwriting the fiddling done by IDE.  Then I compile the apps.

2.  The directories/paths are different for the IDE and the commandline -
crazy I know.  Therefore you have to tell the commandline compiler all the
path info as well.  Unfortunately if you put this in the app.cfg file, the
IDE will trash it next time you go into it.. hence my solution above.

As for how you configure it, attached is a sample file.... the name must be
yourappname.cfg  And delete dcc32.cfg if present anywhere... as that
overrides the apps cfg file.

NOte the LE and LN commands these are for depositing the packages etc.  And
there are four path commands - I just set them all to the same string.

The /lu are to build with these packages those packages.  Just run the dcc32
without parameters.
 for help

----- Original Message -----
From: "Jason L. Coley" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, 25 May 2001 15:42
Subject: RE: Re: Re: [DUG]: Compiler Switches


The problem is the compiler is not rebuilding the dcu files, even though
I have specified the /b switch to build all ?

-----Original Message-----
From: Nello Sestini [mailto:[EMAIL PROTECTED]]
Sent: Friday, 25 May 2001 3:11 p.m.
To: Multiple recipients of list delphi
Subject: Re: Re: [DUG]: Compiler Switches

Does it change if you build from the IDE?

(Do a "rebuild all" - i'm not sure Delphi is smart enough
to detect that a change in the "conditionals" could require
a recompile of units referencing them)

If it doesn't work in the IDE either then your
ShowMessage isn't getting called even if it's included in
the build.    (Can't tell why from what you've shown)

-ns


----- Original Message -----
From: "Jason L. Coley" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 10:01 AM
Subject: Re: Re: [DUG]: Compiler Switches


Well I tried that, but for some reason the dll does not change?

dcc32 "J:\My Documents\Delphi 5 Projects\MyProj\MyProj.dpr"
/DACTIVEDESKTOP /B /Q

and in one of my units I have

{$IFDEF ACTIVEDESKTOP}
  ShowMessage('Active Desktop');
{$ENDIF}

-----Original Message-----
From: Nello Sestini [mailto:[EMAIL PROTECTED]]
Sent: Friday, 25 May 2001 2:18 p.m.
To: Multiple recipients of list delphi
Subject: Re: Re: [DUG]: Compiler Switches

> OK, but how do I do it using the command line compiler?
oh sorry - i misunderstood.

i thought you didn't want to use the command line complier
but thought you might have to to get the switches.


use the /D option to the command line compiler to pass
in the switches to define.

>From the help:

The conditional defines option

The /D option lets you define conditional symbols, corresponding to the
{$DEFINE symbol} compiler directive. The /D option must be followed by
one or more conditional symbols separated by semicolons (;). For
example, the following command line

DCC32 MYSTUFF /DIOCHECK;DEBUG;LIST

defines three conditional symbols, iocheck, debug, and list, for the
compilation of MYSTUFF.PAS. This is equivalent to inserting

{$DEFINE IOCHECK}
{$DEFINE DEBUG}
{$DEFINE LIST}

at the beginning of MYSTUFF.PAS. If you specify multiple /D directives,
you can concatenate the symbol lists. Therefore,

DCC32 MYSTUFF /DIOCHECK/DDEBUG/DLIST

is equivalent to the first example.

-ns

------------------------------------------------------------------------
---
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"



------------------------------------------------------------------------
---
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

cfg.zip

Reply via email to