Jump to content
  • Advertisement
Sign in to follow this  

Angelscript on Mingw64 issues

This topic is 2089 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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


Share this post

Link to post
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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!