Which gives me another problem. I've never used 'import' before, just 'uses'. Looking at the GPC manual, 'import' can only be use in a program file not a unit/module. This is rather limiting for me, if true, as my problem code is spread around several units.
You mean:
: There must be at most one import part in a program.
That statement is wrong. Correct statement is:
There must be at most one import part at the begining of a block. Each module or function/procedure (and also main program) can have its own import part. Single import part can import arbitrarly many interfaces.
The point is that:
import unit1; import unit2;
is illegal, but:
import unit1; unit2;
is legal.