views:

487

answers:

5

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?

+6  A: 

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

Felix
A: 

Just press or using the codeblocks will do, shortcut key: F9.

jihchuan
+1  A: 

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/

Daniel
+1  A: 

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

Kirill V. Lyadvinsky
+3  A: 

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.

greyfade