How to convert a linux executable file (binary) to windows exe file?

前端 未结 4 1105
不思量自难忘°
不思量自难忘° 2021-01-05 09:20

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;         


        
4条回答
  •  温柔的废话
    2021-01-05 10:19

    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)

提交回复
热议问题