I'm trying to build angelscript using mingw64, but without success. It compiles all good, but during linking I get this:
\sdk\angelscript\lib\libAngelscript.a(as_callfunc.cpp.obj):as_callfunc.cpp:(.text+0xc55): undefined reference to `CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned long*, void*, unsigned long long&)'
collect2.exe: error: ld returned 1 exit status
game\CMakeFiles\game.dir\build.make:272: recipe for target 'D:/Downloads/angelscript_2.27.1 (2)/sdk/samples/game/bin/game.exe' failed
make[2]: *** [D:/Downloads/angelscript_2.27.1 (2)/sdk/samples/game/bin/game.exe] Error 1
CMakeFiles\Makefile2:112: recipe for target 'game/CMakeFiles/game.dir/all' failed
make[1]: *** [game/CMakeFiles/game.dir/all] Error 2
Makefile:74: recipe for target 'all' failed
make: *** [all] Error 2
I am not sure how to fix this. Maybe someone here knows?
Thanks.