Bug #6399 2006-02-13 01:04

wolk

Wrong cast from void* to int on amd64

On amd64 sizeof(AnyPointer*) = 8

and sizeof(int) = 4

and sizeof(unsigned int)=4

in few places you try to cast from some pointers to int or unsigned int , because of that make fails

i change cast in those lines to (long int)(some_variable) or to (unsigned long int) and everything compiles there are also these errors:

/home/wolk/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `PrepareSystemFunction(asCScriptFunction*, asSSystemFunctionInterface*, asCScriptEngine*)'

/home/wolk/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `CallSystemFunction(int, asCContext*, void*)'

/home/wolk/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `DetectCallingConvention(bool, asUPtr const&, int, asSSystemFunctionInterface*)'

i didn't manage to fix them

Category
Compiler
Group
 
Status
Closed
Close date
2006-02-14 14:36
Assigned to
 
wolk 2006-02-13 02:26

I forgot to write that i had tried to compile svn version 1993 on linux

mandrav 2006-02-14 14:36

It's the scripting language C::B uses (AngelScript). It isn't 64bit-ready yet.

So, what you describe is a known issue and will be fixed eventually.

Thanks for reporting it.