[fpc-pascal] units order (was using oldlinux )
jonas at zeus.ugent.be
Tue Jun 14 10:00:10 CEST 2005
On 14 jun 2005, at 09:52, Alain Vitry wrote:
>> You must switch the order of the units, because you get the
>> 'oldlinux' types which
>> you try to use in 'baseunix' functions.
> This unit order trick is a bit of a wizardery to me.
It's simply: the last included unit overrides all previously included
> It quickly get very messy in a large enough program to swap units
> order until you get the one which doesn't break.
The proper solution is to not use old compatibility units (such as
aldlinux) and the replacements (baseunix, unix) in the same program.
More information about the fpc-pascal