Martin Liddle wrote:
I am experimenting with gpc 20021128 built with gcc 3.2.1. However I have a compilation problem. The following code fails to compile with the error message:
... snip ...
unit ml2;
interface
... snip ...
implementation
... snip ...
end.
Program ml;
uses gpc, { cstrings,} ml2;
... snip ...
Begin Writeln('Starting'); Make_standard_error('ml'); end.
Maybe I am thick, but I fail to see any reason for this sort of source file structure. Surely the purpose of units (or modules) is to separate the source into relatively independant units. Something with the above structure should be written as a single simple source file, as Wirth intended, while separate things should be in separate source files. IMNSHO :-)