[fpc-pascal] Implementing AggPas with PtcGraph
Tomas Hajny
XHajT03 at hajny.biz
Thu Jun 15 22:24:56 CEST 2017
On Thu, June 15, 2017 16:06, James Richters wrote:
.
.
>> 3) Make sure you always rebuild the unit depending on the program you
>> want to compile (Compile -> Build).
>
> Is there a way to force this with the command line? (same as Compile >
> build from the IDE) ?
Yes, of course - it's the option '-B'.
.
.
> Oh, I see the issue here. So If I were to write a unit that I wanted
> Programs to share, but have various options, I may be better off to define
> a variable in the unit and let the programs change the variable depending
> on what they want.... with the compiler directives, it's actually leaving
> out parts altogether, so you need to re-compile the unit if you want to
> change it... makes smaller files than always including things you don't
> want to use.
.
.
Yes, exactly (plus there are some more reasons, like that you want to
reduce unneeded dependencies which may not be fulfilled, etc.).
Tomas
More information about the fpc-pascal
mailing list