[fpc-pascal] How do I load external Pascal code?

Vladimir Zhirov vvzh.lists at gmail.com
Fri Oct 14 20:33:10 CEST 2011


Andrew Pennebaker wrote:
> Thanks, the conditional execution code helps a lot. Does
> $IFDEF look for an environment or Makefile variable?

No, it looks for previously defined variables. You can define
variables using -dMyVar command line switch when running the
compiler, or {$DEFINE MyVar} in source code. It is possible
to use the first approach in makefiles.




More information about the fpc-pascal mailing list