3

I make this program in C++ using Code::Blocks on Ubuntu. I need to turn it into a Windows executable binary (.exe file), but I don't know how to do this. Is it possible?

9
  • possible dupe? stackoverflow.com/questions/1702945/…
    – KillianDS
    May 6, 2010 at 15:17
  • 1
    Why would you want a .exe file on Ubuntu? Do you want to cross-compile for Windows? May 6, 2010 at 15:18
  • I want to create a .exe file because the program will be tested on Windows. I just hate Windows so I don't use it.
    – user69514
    May 6, 2010 at 15:21
  • 1
    @user69514: Now that's a very different question from what I thought you asked... I've slightly changed the question to reflect this.
    – sbi
    May 6, 2010 at 15:23
  • 2
    I suspect that'd create a self-extracting zip file, not convert your executable for Windows. May 6, 2010 at 15:31

4 Answers 4

4

If you meant, compiling an executable for Windows on Linux you might find some pointers on how to do that here.

0
3

Both the MinGW32 distribution of GCC and Wine should be available for your distribution.

MinGW has instructions and winegcc wraps a similar compiler that comes with the Wine distribution.

I've used both to compile both applications and libraries for Windows.

1

You could read here on how to compile wxWidget applications on Linux for Windows using Code::Blocks.

0

This is a fairly unusual question. What you're asking is that you want to develop on Ubuntu, but the target platform is Windows?

My guess is that you have an assignment to turn in. My belief is that you should go to a lab and compile it and make sure it's working.

However, doing some research, you should try mingw at http://www.mingw.org/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.