How do I cross-compile C code on Windows for a binary to also be run on Unix (Solaris/HPUX/Linux)?
问题 I been looking into Cygwin/Mingw/lcc and I liked to be able to compile perl native C extensions on my windows(preferably under cygwin) and then run them on Solaris and HP unix without any further fuss, is this possible? This all stems from my original perl cross-platform question here. 回答1: Cross-compiler are very hard to setup and get working correctly. Consider that (the people at) NetBSD have to put in a huge amount of work to get cross-compiling to work, and they're running the same OS,