User forums > Using Code::Blocks

ubuntu 8.04 x64, codeblocks x64, gdb x64 = program x32... not x64

<< < (2/2)

odubtaig:
OK, this is something of an odd one as GCC on 64bit systems is supposed to default to 64bit programs so it's odd that it's defaulting to 32 bit in the first place (I'm assuming this has been altered on Ubuntu as far as my earlier comments are concerned). The only other thing I can think of is to try -mcmodel=medium but so far as I know the limit there is 2GB, not 4GB and it doesn't limit where pointers can point to (just where the program and its symbols can be).

Make absolutely sure of your version of gcc/g++ on the command line (gcc --version) or double check it in Synaptic. Other than that I think this might be better answered on the Ubuntu forums as it's getting more into compiller issues than a problem with C::B. Only thing that can confirm this is to try to compile the program on the command line rather than through C::B, trying the different -m... options, to see if something sticks that doesn't in C::B. If it does work better and the compiler selection in C::B is correct then there may be a bigger problem.

str0g:
Its looks like its bigger problem...

after compiling in cmd line still same  problem :(

This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
lukasz@lukasz:~/Desktop$ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
lukasz@lukasz:~/Desktop$ gcc --version
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Jenna:
I'm not sure if that can cause your problem: do you have the appropriate kernel for your system, or is it a standard kernel that can not address the amount of memory you use ?

str0g:
lukasz@lukasz:~$ uname -v
#1 SMP Wed Aug 20 17:53:40 UTC 2008
lukasz@lukasz:~$ uname -r
2.6.24-19-generic
lukasz@lukasz:~$ uname -s
Linux

Navigation

[0] Message Index

[*] Previous page

Go to full version