Toby Ewing wrote:
Hi,
I'm running into an odd problem here. Compiling simple Pascal programs goes fine, but when I compile a unit that has some C code (e.g., crt.pas) I get the message: gp: Pascal and C compilers specified seem to be for different platforms gp: ('i686-pc-linux-gnu' and 'i386-redhat-linux')
Seems to me that this shouldn't be a problem, but clearly the compiler thinks it is.
Not the compiler, but the gp utility which you're apparently using. Yes, gp is very strict in this regard. If you're sure what you're doing, you can disable this check with `--no-check-platform'. Alternatively you can pass `CC=gpc' to use the gpc as the driver for the C compiler. This should work provided cc1 was installed with gpc. The advantage then is that you definitely have the same backends working. (Though mismatches usually are no problem under Linux and many other systems, indeed.) Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8