Romain Chantereau wrote:
Ok, I installed gpc with the tar.gz gived with the src.rpm, and it works !!!
But, I would know how compile without the --automake option, because xwpe-alpha or rhide don't permit to modify the basic command line... (and I don't want to make remplacement script, but if I dont' find something, i will do that..)
Thks for all, it was very cool to help me like that !!!
RHIDE (not sure about xwpe) lets you modify the command line -- in fact, it does use `--automake' by default, but (unless that has been corrected in a newer release) also some obsolete automake parameters which cause a warning by GPC. Some earlier messages this year on this list described how to modify the command line.
You also might want to try my IDE PENG (http://fjf.gnu.de/peng.html) which was written in GPC and, of course, uses an appropriate command line for GPC. (What a shameless plug! ;-)
Apart from that, to answer your question, you can compile a single unit or program with the `-c' switch, and link all the object files, e.g. with a program `foo' that uses a unit `bar':
gpc -c bar.pas gpc -c foo.pas gpc -o foo foo.o bar.o
This way, you have to compile the units used by a program/unit before the program/unit itself, and you have to make sure to recompile anything when necessary. Also, you have to take care of C files and libs referenced from some units, e.g. CRT, with `{$L}' directives. IOW, you better write a Makefile, as usual in C...
Frank