Author Topic: Developing 64-bit applications using Code::Blocks  (Read 4630 times)

Offline LeanA

  • Single posting newcomer
  • *
  • Posts: 2
Developing 64-bit applications using Code::Blocks
« on: February 05, 2010, 06:26:19 pm »
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!

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Developing 64-bit applications using Code::Blocks
« Reply #1 on: February 05, 2010, 06:32:09 pm »
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."

Offline LeanA

  • Single posting newcomer
  • *
  • Posts: 2
Re: Developing 64-bit applications using Code::Blocks
« Reply #2 on: February 06, 2010, 04:50:02 am »
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!

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Developing 64-bit applications using Code::Blocks
« Reply #3 on: February 06, 2010, 07:40:36 pm »
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."