Is there any way to convert a Linux binary file to windows exe file? For example if in Linux create a very simple binary file like this:
echo \"main(){int i;
There are no means to convert the binary.
Regular ways to go are:
Recompile for other platform, but this requires the source (and cross-platform support in the source or the used libraries must be available on the other platform as well). cygwin
/mingw
, for example, can help providing the required support/libraries.
wine
could be used to run Windows binaries on Linux (but not the other way around)