View Full Version : converting unix exe to windows binary

16th September 2006, 19:32
Dear programmers

Can somebody tell me how to convert Linux exe ( compiled by gcc) to windows exe
I have made an application where I use Linux frontend(ie QT 3.1) and exe files of linux(unix)
But now I have been told to make the same application with windows frontend.
Frontend part I will handle with QT for windows but how to port these linux exe file directly to windows platform.

In fact I tried to compile the same in C++ compilers but lot of errors are given. Where as with gcc on linux platform it easily compiles and gives the exe file.

How can I use this exe in windows.( that's why my question above as to how to convert Linux exe ( compiled by gcc) to windows exe

16th September 2006, 19:43
I don't think that you will find a tool that would do such thing. Better try the normal approach and simply compile your project on windows. You can use MinGW (http://www.mingw.org) toolchain for this. Since you use Qt, there shouldn't be any problem with porting your source code to windows (unless you have used some Linux specific mechanisms).

17th September 2006, 01:00
in addition to what jacek said, you could also try to use Cygwin. (http://www.cygwin.com/)