OK, but how do I do it using the command line compiler?
-----Original Message-----
From: Nello Sestini [mailto:[EMAIL PROTECTED]]
Sent: Friday, 25 May 2001 12:28 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Compiler Switches
take a look at $IFDEF and $IFNDEF in the help
it works like this
{$IFDEF FOO}
// stuff here will be included iff FOO is defined
{$ELSE}
// stuff here will be included iff FOO is not defined
{$ENDIF}
you can define the FOO switch in your project build
options
Project|Options|Directories/Conditionals |
and either put FOO in the list or don't put it
there depending on ... whatever.
This does not require the command line compiler - works
just fine in the IDE.
-ns
----- Original Message -----
From: "Jason L. Coley" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 6:57 AM
Subject: [DUG]: Compiler Switches
Hi,
Is there a way I can have a section in one of my pas files that I can
exclude from a build using some type of compiler directive/switch, I
would like to be able to have two different versions of my dll but to
use the same code. Is this possible? I think I would have to use the
command line compiler, but that isn't a problem.
Regards
Jason Coley
Manawatu Software Solutions
http://www.software-solutions.co.nz
<http://www.software-solutions.co.nz>
------------------------------------------------------------------------
---
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"