News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Developing 64-bit applications using Code::Blocks

Started by LeanA, February 05, 2010, 06:26:19 PM

Previous topic - Next topic

LeanA

Hi all,

I was wondering if it is possible to create 64-bit applications using Code::Blocks? And if so, what are the steps that I need to do in order to use it?

Thanks in advance!

thomas

You need a 64 bit compiler for the platform you're developing for, and you need to be aware that pointers are twice the size (or, use sizeof() which is better anyway). That's pretty much it.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

LeanA

Hi thomas, thanks for replying!

Where can I get the 64-bit compiler? Is it included in the Codeblocks installer? Sorry, I'm quite new  :(

And if say I want to develop an application for a 64-bit Windows XP OS, does that mean that the 64-bit compiler I have targets that kind of OS?

Thank you!

thomas

For 64-bit Windows, you will need to use something like for example this.

Works the same like the packaged compiler, only need to either configure a different path name or/and executable names in "toolchain" preferences.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."