# Angelscript on Mingw64 issues

## Recommended Posts

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
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.

##### Share on other sites

MinGW 64 requires the code from the source file as_callfunc_x64_mingw.cpp. It appears this file was not included in the makefile when compiling the library.

What project did you use? The CMakeLists.txt? It appears this project doesn't include the above file, try including the file and see if it fixes the problem. Let me know if it works and I'll update the project in the SDK.

## Create an account

Register a new account

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627658
• Total Posts
2978474

• 10
• 12
• 22
• 13
• 33