[fpc-pascal] (no subject)

Tomas Hajny XHajT03 at hajny.biz
Mon Apr 12 14:27:42 CEST 2010


On Mon, April 12, 2010 14:03, Graeme Geldenhuys wrote:
> On 12 April 2010 13:25, Bart <bartjunk64 at gmail.com> wrote:
>>
>> Commandline:
>> fpc -dNOFORMSPLEASE myprogram.pp
>>
>> Not sure if this can be done from within FP IDE or Lazarus though.
>
> Yes they do...
>
> FP IDE:
>     Option > Compiler > Conditional Defines
>
> Lazarus IDE:
>     Project > Project Options > Compiler Options > Other > Custom options
>       - add a new line:  -d<your_define_here>
>
> MSEide:
>     Project > Options > Make > Make Options
>       - add a new line:  -d<your_define_here>

These are obviously all valid. There's also another possibility though
(having advantages and disadvantages compared to this) - you could have an
include file specifying this define and reference this include file from
all (relevant) source files. The advantage is that this works
independently from the chosen compilation method (fpc from command line,
makefile, all IDEs, etc.). The disadvantage is obviously that if you need
to make sure that you don't forget the include file reference in any of
your (relevant) files.

Tomas





More information about the fpc-pascal mailing list