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 units.

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.


Jonas


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to