Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Backticks in Windows Shell/Code::Blocks?

<< < (4/5) > >>

mandrav:

--- Quote from: Takeshi Miya on January 16, 2006, 12:35:42 pm ---I couldn't compile C::B on it yet (lot's of AngelScript errors, and it isn't #ifdef'ed...).

--- End quote ---

If you fix them, please send me a patch. It 'd be nice to make AngelScript 64bit compatible :)

takeshimiya:
No problem, just I don't know how to fix them properly (commenting some offending lines makes it compile more).

Because I don't know this kind of things (AngelScript):
currentObject = (void*)(int(currentObject) + sysFunc->baseOffset);

error: cast from 'void*' to 'int' loses precision

Or wxAUI (for what is a random string created??):
// if the pane's name identifier is blank, create a random string
if (pinfo.name.IsEmpty())
{
   pinfo.name.Printf(wxT("%08x%08x%08x%08x"),
             (unsigned int)pinfo.window, (unsigned int)time(NULL),
             (unsigned int)clock(), m_panes.GetCount());
}

error: cast from 'wxWindow*' to 'unsigned int' loses precision

More compiler errors (castings):
error: invalid conversion from 'void* (*)(size_t)throw ()' to 'void* (*)(asUINT)'

And linker errors (probably related to x86 optimizations of calling conventions for system functions?):
libcodeblocks.so: undefined reference to `PrepareSystemFunction(asCScriptFunction*, asSSystemFunctionInterface*, asCScriptEngine*)'
libcodeblocks.so: undefined reference to `CallSystemFunction(int, asCContext*, void*)'
libcodeblocks.so: undefined reference to `DetectCallingConvention(bool, asUPtr const&, int, asSSystemFunctionInterface*)'

And more fun :)

I just couldn't try more because I gave little space to the linux partition and soon became full.
I'll have to burn some data, and then resize the ntfs and give more to the reiserfs one.

280Z28:
void* can be stored in a long or unsigned long without losing precision.

Edit: On 32bit and 64bit systems, long and ptr are the same size.

takeshimiya:
int is not long.
int on 64 bits platform is 32 bits if I remember well.

tiwag:

--- Quote from: mandrav on January 16, 2006, 12:25:14 pm ---Here you go. Revision 1766.
Let us know of your progress :)

--- End quote ---

thanks i have a good application for using this !

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version