Quote:
Originally posted by sfcesario
I've just tryed taking gcc from the linux box and pasting on to XP box, using cygwin to use that gcc version.
$ ./gcc-2.95 test.cpp
Program too big to fit in memory
James
|
sfcesario,
I am not sure, that i understand what you have done
. You could not just copy gcc from linux box to Win box, they have different executable formats and it will not work. In case you want to have cross-compiler under cygwin for you linux box, you must BUILD it under cygwin from gcc sources BY HAND, using necessary header files from your linux box, see gcc's corsscompiling readme for details.
Might be it would be easier to use combination of scp/ssh to transfer sources to the linux box and execute compiler there, smth like this:
cygwin>scp mycprog.cpp linuxuser@linuxhost:mycprog.cpp
cygwin>ssh linuxuser@linuxhost 'gcc mycprog.cpp -o myscprog'
If you would want it to be runned as a batch process and do not ask for password, you should configure sshd on linux box to do not ask password and use key authorization instead.
Best Regards,
Oleg.