On Mon, April 12, 2010 14:03, Graeme Geldenhuys wrote: > On 12 April 2010 13:25, Bart <bartjun...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal