On 2016-04-19 12:17, Dennis wrote:
>
> so that when I rebuild the project, fpc will see USE_XYZ is defined.
You have multiple options.
Depending on your Lazarus version... In older versions of Lazarus IDE
you have to define then in "Project Options -> Compiler Options ->
Other" and enter them
> "-d" is the fpc flag for a define. See "fpc -h".
Thanks,
Ara
--
http://www.fastmail.com - Access all of your messages and folders
wherever you are
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
On Tue, Apr 19, 2016 at 2:17 PM, Dennis wrote:
> Where do I put
> {$DEFINE USE_XYZ}
>
> so that when I rebuild the project, fpc will see USE_XYZ is defined.
In Project Options:
Compiler Options -> Custom Options - > Defines ...
Juha
--
> Add -dUse_XYZ to Project / Project Options / Compiler Options /
> Custom Options
Curiosity : Why a "d" in the beginning?
Regards,
Ara
--
http://www.fastmail.com - A no graphics, no pop-ups email service
--
___
Lazarus mailing list
On Tue, 19 Apr 2016 19:17:05 +0800
Dennis wrote:
> I some of my units, I have :
>
> uses classes,
> {$IFDEF USE_XYZ}
> certain_unitXYZ
> {$ENDIF};
>
>
> Where do I put
> {$DEFINE USE_XYZ}
>
> so that when I rebuild the project, fpc will see USE_XYZ is defined.
>
I some of my units, I have :
uses classes,
{$IFDEF USE_XYZ}
certain_unitXYZ
{$ENDIF};
Where do I put
{$DEFINE USE_XYZ}
so that when I rebuild the project, fpc will see USE_XYZ is defined.
Putting in in the project .lpr does not work
Thanks in advance.
Dennis
--