C++ compilator for 64 and 32 bits

March 6, 2013 at 12:27:13
Specs: Windows 7, 4GB
Is there a way to compile 64 bit program on 32 bit windows?
I am using codeblocks and I make programs only for 32 bit windows...
How do I compile my program to work on Windows 64 bit?

See More: C++ compilator for 64 and 32 bits

Report •


#1
March 6, 2013 at 12:50:02
It is possible to compile programs for one machine on another, using what is called a cross-compiler. Usage is not entirely straightforward, and you can obviously only test the programs on the appropriate machine. For those reasons I would say that developing 64-bit programs on a 32-bit machine is not really feasible. If you had the 64-bit machine to test the program you could develop on it.

Cross-compiling is normally used with embedded systems or mobile devices where the target is far less powerful than the development machine.


Report •

#2
March 7, 2013 at 01:49:28
What you want to achieve is not clear since 32 bit applications can run under 64 bit operating systems. There are few applications developed for 64 bit environments only, mainly CAD and video editing programs. If you have to develop 64 bit bounded applications follow what ijack posted, otherwise there is no need to compile for 64 bit only.

Report •

#3
March 7, 2013 at 05:22:26
You need to use MinGW-w64 with Code::Blocks. I'm sure someone somewhere has instructions on how to do so. You'll also need to tell Code::Blocks to supply the "-m64" parameter to the compiler. I'm sure someone somewhere has instructions on how to do so.

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
March 10, 2013 at 11:18:00
:) Thank you for your answers... I will have a look at it... :)

Report •


Ask Question