I must be missing something or is it just that AngelScript is not compatible with MingW-64.
I am using CodeBlocks with TDM-GCC MingW-64 on Windows 7 64bit
This is the same on both newest dev and release of AngelScript.
angelscript_2.25.2 and angelscript-trunk
The disassembly is from trunk if it matters.
I get SegFault on context Execute()
I am testing using the Console sample but tried tutorial sample with segfault also.
scripthelper.cpp int ExecuteString(asIScriptEngine *engine, const char *code, asIScriptModule *mod, asIScriptContext *ctx) Line 154 r = execCtx->Execute();
Feature Test passed all except
Failed on line 178 in test_addon_debugger.cpp
Creating Static Library using the the CodeBlocks project however I changed the defines because 64bit compilation fails with i386 option with Error: invalid instruction suffix for `push' ...etc
Currently Using these defines but I have tried many different combinations with no change. Without AS_X64_GCC the featuretest SegFaults after the first 2 lines.
ANGELSCRIPT_EXPORT
WIN32
AS_X64_GCC
Disassembly
0x004049BC callq *%rax 0x004049BE mov 0x74(%rbp),%edx 0x004049C1 mov %edx,0x3c(%rbp) 0x004049C4 jmp 0x404a25 <ExecuteString(asIScriptEngine*, char const*, asIScriptModule*, asIScriptContext*)+733> 0x004049C6 mov 0x68(%rbp),%rax <--------- 0x004049CA mov (%rax),%rax 0x004049CD add $0x28,%rax 0x004049D1 mov (%rax),%rax 0x004049D4 mov 0x68(%rbp),%rdx 0x004049D8 movl $0x2,-0x28(%rbp)
Edited by Neuntoter, 12 January 2013 - 05:49 AM.






