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;
You can not convert a linux executeable into a windows executeable. But you can compile the source with cross-compiler.
E.g: MinGw32
if you are in ubuntu:
sudo apt-get install mingw32 i586-mingw32msvc-cc main.c -o main.exe