User forums > Using Code::Blocks
ubuntu 8.04 x64, codeblocks x64, gdb x64 = program x32... not x64
str0g:
How can I change build to 64bit?
Ive checked my code with VS with 64 settings and my program was x64 (address over 10gb ram under vista :) )
but code builded with CB under ubuntu for ubuntu can addresss only 4095 so where to add something ;P
odubtaig:
Have you gone through Project >> Build Options? The options for target architecture are under Compiler Flags, I believe it's -march=athlon64 to support the widest target.
str0g:
I did what you told me, then rebuild project->compile and run = still no resaults addressing ends on 4095 ;(
odubtaig:
Hmm, was hoping that'd add the other options as well. Go back to the compiler flags and select the Other options tab, add -m64 (no space or anything required around this) and see if that works. On the command line this sets int to 32, long to 64 and pointer to 64.
Really I'm not sure why -march=athlon64 shouldn't have done this automatically as such options are usually super options including what extensions a CPU does/doesn't have (-march=prescott includes -mmmx -msse -msse2 -msse3 for example).
str0g:
still same :/
Navigation
[0] Message Index
[#] Next page
Go to full version