4

I've found little info about cross-compiling Linux binaries in Windows, most questions are about the opposite situation.

Has someone any experience or pointers to share?

I'd prefer Mingw over Cygwin, if I can choose.

Assume that the specific Linux target is available: I have the include headers and binaries.

leonbloy
  • 73,180
  • 20
  • 142
  • 190
  • See the top answer to [this question][1]. They use Cygwin though. [1]: http://stackoverflow.com/questions/4769968/c-cross-compiler-from-windows-to-linux/ – Sergey Slepov Oct 20 '13 at 13:10

1 Answers1

1

I haven't done this myself, but have you considered setting up a virtual machine, and compiling on that? You could use a "network" share, so that both the Windows system and Linux virtual system can see the same directories. With the Virtual Machine solution, it becomes much easier to target specific distributions and architectures.

Best of luck, regardless.

Ronnie Howell
  • 639
  • 3
  • 8