User forums > General (but related to Code::Blocks)

Installing 64bit?

(1/4) > >>

Newbie0815:
I´ve been searching the web for months now, but either I´m blind, or there is no info about it.
I found tons of topics asking, how to compile 64bit applications on a 32bit OS or the other way around.
I found tons of topics dealing with compiling 64bit in Linux.
Also there are tons of topics asking about the 64bit version of MinGW, where the answers all require a university degree in informatics before one could understand them.
A search for "Code Blocks 64 bit" in Google finds the Wiki page, where they explain how to make C::B work to compile 64bit with VC++2005, but not a word about MinGW.
I understand that most programmers will have enough knowledge and prefer to install IDE and compiler separate, but beginners like me apreciate the all in one installation as C::B offers it in the download section.
I´ve already had a hard time installing a nighly build over the basic installation to make it work in Vista 32bit.

I´m not really developping anything, I´m just learning by doing and more out of curiosity than need, but now I have Windows7 64bit and obviously I would like to have an easy all in one installation package for the IDE/compiler I´m familiar with, which is C::B/MinGW/GCC++.
It might be a bold request, but you might say, I want to keep everything as it was in 32bit, with the only difference that I can then compile 64bit applications within Windows7 64bit.
One where a click on "Create a new project" will automatically produce the code needed to create an empty example window, which will compile as it is, only makes it a 64bit example window.

Unfortunately there is no such thing, not even a website explaining how to set it up, or at least none that a beginner like me could understand.
Could anyone explain how to do this, in words a dummy like me can understand, or does anyone know a website explaining it?

Propagator:
You don't need a 64bit Code::Blocks to compile 64bit applications. So just install the latest nightly of Code::Blocks and you should be fine.

But you'll need a 64bit compiler as the one provided by the MinGW-w64 project (http://sourceforge.net/projects/mingw-w64/). According to this URL (http://sourceforge.net/apps/trac/mingw-w64/wiki/download%20filename%20structure) you'll have to download an archive with the prefix mingw-w64-bin_x86_64-mingw_..... You can find such archives e.g. in the Personal Builds folder of the MinGW-w64 project on sourceforge.

The next step is to unpack the archive. In my case, I put everything into a folder c:\mingw-w64\.

Finally you must set up Code::Blocks to use this toolchain. In the menu Settings->Compiler and Debugger go to the tab Toolchain Executables. Set the compiler's installation directory (c:\mingw-w64 in my case) and enter the file names of the toolchain executables (in my case: C compiler: x86_64-w64-mingw32-gcc.exe, C++ compiler: x86_64-w64-mingw32-g++.exe, etc..)

Now you should be ready to use Code::Blocks to write and compile 64bit applications...  (hope I didn't miss a step)

Newbie0815:
Thanks for the answer.
Sounds  quite easy, but I didn´t fully understand it.
Your first links leads to a download where the file contains the word "snapshot" which makes me wonder what that means, at least to me it doesn´t sound like the simply ready made package.
Your second link leads to a page where they try to explain how you find out what you need, but the link on top of the page leads to a list of files that somehow doesn´t match the explanations at least there are way more files than the page explains about and again I´m not sure which one I need.
Then there are separate files like one for Release for GCC4.4.0 and another Release for GCC4.4.1, which makes me believe, I might have to download GCC separate and install that as well, but on that one there is no further explanation.

While the files have sizes between 3.4MB and 1.6GB, I´m sure its not all the same, but I really have no clue which one(s) I need to have C::B installed about the same way as I have it through the all in one download, just in 64bit version.

stahta01:

--- Quote from: Newbie0815 on March 25, 2010, 01:34:28 pm ---While the files have sizes between 3.4MB and 1.6GB, I´m sure its not all the same, but I really have no clue which one(s) I need to have C::B installed about the same way as I have it through the all in one download, just in 64bit version.

--- End quote ---

Then you will need to wait a few months to maybe years. Note, it may never happen.

Tim S.

Newbie0815:
When I first got here, about 3 years ago, I had about the same problem, maybe even worse than this time.
I haven´t forgotten, it was you, stahta01, who helped me out back then, the post is still here: http://forums.codeblocks.org/index.php/topic,5231.0.html
I´ve copied your first reply in that thread into a .txt, plus a few notes I´ve added for myself and I´ve reused it countless times to reinstall my system.
I´ve happily worked with this for the last 3 years, and I´m still grateful for your help back then.

Somehow I was hoping I could get an updated list of things to do, in same format as you gave me there.

Beginning with a new PC, nothing but a fresh windows7 ultimate 64bit installed.
download [this file], unpack it into [this folder]
run [this], select [this]

It was the best explanation I ever got for anything, absolute foolproof.
I guess I can´t thank you enough for your help there, so let me say thanks again, and if it´s not too much for you, could you make me a similar list for 64bit?

Navigation

[0] Message Index

[#] Next page

Go to full version