It sounds to me like the command line compiler
isnt' using the same make list (or source path?)
as the IDE.   Or something like that.

Rohit - are you getting this?

ISTR he knows all the ins and outs of controlling
the command-line compiler.   For your sake I 
hope he jumps in later - you've exhausted my
knowledge of the command line compiler :-(

-ns


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


I have deleted the dcu file that belongs to the pas file with the
compiler $IFDEF switch, and now the command line compiler says it can't
find the dcu file, even though the /b swtich is present? Do I have to
explicitly compile the pas file first?

Regards
Jason Coley
Manawatu Software Solutions
http://www.software-solutions.co.nz


-----Original Message-----
From: Jason L. Coley 
Sent: Friday, 25 May 2001 3:43 p.m.
To: Multiple recipients of list delphi
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"
---------------------------------------------------------------------------
    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"

Reply via email to