I was given the task to deal with cross-compiling C and C ++ applications from under Windows for Linux.
I tried using cygwin for this purpose. Installed this shell, launched it. Installed the cygwin-gcc-3.3.6-glibc-2.3.2-linux compiler (the old truth). And I tried to compile the usual HelloWorld from it and run it under Linux, everything turned out.
But the task is to run a cross-compiler from our Windows application that will compile some files. How can this be implemented? Just in this case, you have to run Cygwin, and already from it gcc-linux or g ++ - linux. So far I do not see ways to run from our Windows application Cygwin and further already in it start the compiler.
Maybe there are some other ways out of the situation? How can you customize a separate Windows compiler at all, which will compile binaries for Linux?