On 21 Mar 2005 at 16:49, 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?
If you are building gpc yourself, first run "gcc -dumpmachine". The output of that should be your target when configuring - e.g., if the output is "i686-blah" then you run: "./configure --host=i686-blah --target=i686-blah --build=i686-blah -- prefix=/usr --enable-languages=pascal && make"
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/