As far as I know, using {$DEFINE} it is possible to define a symbol name whose scope is the current module (i.e. unit or program). I want to define a global symbol, i.e. a symbol visibile in all the units of a project. Now I exploit the following workaround: I use {$include} to include a .inc file with needed definitions in all the units. Is there a smarter to do this (by code)?
In code no, there's no way; just workarounds as you're using now […]
[…] fpc -dMYDEFINE