On Mon, 21 Mar 2005, Toby Ewing wrote:
Hi,
I wrote earlier and got no response. Now I'm trying again.
I installed gpc on a new machine with redhat 9. I can compile and run easy demo programs. But any program the has C-code in it, or uses a unit with C-code, gets rejected.
Under gp, the message is gp: Pascal and C compilers specified seem to be for different platforms gp: ('i686-pc-linux-gnu' and 'i386-redhat-linux')
Using gpc directly, I can compile the unit crt.pas, but when I try to compile a program that uses it, I get a message saying that crt.gpi needs to be recompiled. Recompiling crt.gpi does not change anything.
What do I need to do to get some version of gpc working on this system?
While not the only way, a safe way is to get the gpc and gcc sources and compile gpc/gcc so that they will match exactly on your computer. The last beta of gpc and gcc-3.3.5 is fine. When you run configure remember to include --enable-languages=c,pascal
Russ