Originally Posted by IanVaughan
I have two headless servers I am writing code for, and a Windows box networked with them.
I want to compile my code within an IDE on the Windows box (eclipse most likely) and run the compiled binarys on the Linux boxes.
Will this work?
Using Cygwin (or MinGW)?
Probably not possible at the moment.
I know the opposite, i.e. how to compile for Windows under Linux, and part of the process is having Windows-specific headers and runtime, which do exist for the compile under Linux, run under Windows tools.
I.e. if you want to do it the other way round, you'll need to find/create Linux-specific headers and runtime (glibc) under Windows.
Look up "colinux" - it's Linux running inside Windows. Maybe using it you'll be able achieve your goal, though the prerequisites (native-Linux-specific headers + runtime) still have to be satisfied.