Hi guys.
I've been scratching my head for about two hours now, trying to figure out what kind of incantation I need to do in order to compile a module whose interface and implementation sections reside in different files.
-STOP-
Okay, I've composed two other mails before this (with the first couple of paragraphs being part of the second), and I've finally found what I needed.
It turns out that, in order to compile a module that has its interface and implementation sections in two different files, one has to compile them this way:
gpc -c --interface-only TAttributes.int.pas gpc -c --implementation-only TAttributes.imp.pas --include TAttributes.int.pas
Now, my question is, why do we need to include the interface part with the implementation part manually? Can't we tell gpc where to look, to find what it needs? The --unit-path command-line option did not help, and gpc warned about using --auto[make/build].
Also, --unit-destination-path doesn't work for me; I have compile from inside the directory where I want the .gpi and .o files to be placed.
Using (as per gpc -v): gpc version 20040516, based on gcc-3.3.3
Also tried with 20030830 (both with gcc 3.2.2).
Anyway, back to those unit tests. :D