In theory, you should be able to Cross-Compile.
But it's been ages since I last did that, so I don't think I remember enough to walk you through it.
http://en.wikipedia.org/wiki/Cross_compilerA quick search returned these 2 results. I gave them a quick glance and they sound right:
http://stackoverflow.com/questions/182408/manual-for-cross-compile-a-c-application-from-linux-to-windowshttp://forums.codeblocks.org/index.php?topic=3343.0And in case you get stuck...
...when I last did it, I downloaded some extras from DJGPP:
http://www.delorie.com/djgpp/From Delori'es install page (Using Zip-picker):
Using DJGPP as a unix-to-dos cross compiler is tricky. You'll need to get, build, and install binutils and gcc with ./configure --target=i586-pc-msdosdjgpp (install binutils before configuring gcc - gcc needs the cross-assembler). You may need this patch.
djcrx comes with sources for stubify, which you'll have to build and install manually.
So that's the short version:
1. You have to build binutils and gcc (for your target).
1.1. You might need something like the stubify (to get proper W32 binaries).
2. When you have the above, you'll need to specify a --target when compiling.
3. Have fun compiling just about everything (libraries/dependencies).
And do let us know if you managed to do it.
Unless otherwise specified: I use linux and run (and compile) the latest dev.