User forums > Using Code::Blocks
CVS compile error
kalxas:
Hello!
I am trying to compile Code::Blocks for Linux without success so far.
I use WxWidgets 2.6.2 and GCC 4.01
My distibution is Mandriva 2006.
I downloaded the last version from the site but the makefile didn't work.
Then I got the lattest CVS code and used the bootstrap method.
I got the following error during the make process:
parser/parser.cpp: In member function 'void Parser::OnAllThreadsDone(CodeBlocksE vent&)':
parser/parser.cpp:844: error: cast from 'Parser*' to 'int' loses precision
make[4]: *** [parser.lo] Error 1
make[4]: Leaving directory `/home/kalxas/build/codeblocks-1.0/src/plugins/codeco mpletion'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/kalxas/build/codeblocks-1.0/src/plugins/codeco mpletion'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kalxas/build/codeblocks-1.0/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kalxas/build/codeblocks-1.0/src'
make: *** [all-recursive] Error 1
Can anyone help?
Thanks in advance.
kalxas
Urxae:
Ah, that's a portability no-no: casting pointers to ints.
On what kind of machine are you compiling? (x86? x86-64? PPC?)
From the error message it looks like on your machine sizeof(Parser*) > sizeof(int).
kalxas:
My machine is a Dual Core AMD64
Does this mean that I cannot compile Code::Blocks?
rickg22:
Argh! Is this a C::B bug? :(
thomas:
Hmm...
sizeof(int) == 4
sizeof(Parser*) == 8 under Linux 64bit?
What does wxEvent::SetInt do in 64 bit environments?
Navigation
[0] Message Index
[#] Next page
Go to full version