On Tue, 19 Apr 2016 19:17:05 +0800
Dennis <de...@avidsoft.com.hk> 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.
> 
> Putting in in the project .lpr  does not work

Add -dUse_XYZ to 
Project / Project Options / Compiler Options / Custom Options

Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to