• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android Can't compile for Android - GMLFuncs: error: undefined reference

Hello everyone.
I am not able to compile my game for android. Strange because I managed to compile on the 4th of this month.
I put the GMS log below:
[...]
Android NDK: android-14 is unsupported. Using minimum supported version android-16.
Android NDK: WARNING: APP_PLATFORM android-16 is higher than android:minSdkVersion 14 in ./AndroidManifest.xml. NDK binaries will *not* be compatible with devices older than android-16. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
[armeabi-v7a] Compile++ arm : yoyo <= Epic_Warriors_Pocket.vars.cpp
[armeabi-v7a] Install : libc++_shared.so => Y:/Epic_Warriors_Pocket_109C27F8_YYC/lib/armeabi-v7a/libc++_shared.so
[armeabi-v7a] SharedLibrary : libyoyo.so
jni/libyoyo/../../gml_Object_obj_battle_control_Step_0.gml.cpp:1320: error: undefined reference to 'gml_Script_scr_territory_id(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
jni/libyoyo/../../gml_Room_room_menu_Create.gml.cpp:25: error: undefined reference to 'gml_Script_scr_territory_id(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
jni/libyoyo/../../gml_Room_room_flag_Create.gml.cpp:31: error: undefined reference to 'gml_Script_scr_temp(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Script_scr_villa_create(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Script_scr_villa_step(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Script_scr_villa_draw(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Script_scr_territory_id(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Script_scr_temp(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_loading_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_loading_Alarm_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_loading_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_loading_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_system_playersbattle_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_system_playersbattle_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_system_playersbattle_Step_1(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_system_playersbattle_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_system_playersbattle_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_battle_challenge_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_battle_challenge_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_battle_challenge_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_battle_challenge_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_pre_battle_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_pre_battle_Alarm_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_pre_battle_Alarm_1(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_pre_battle_Alarm_2(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_pre_battle_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_pre_battle_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_pre_battle_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_01_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_02_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_03_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_04_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_05_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_06_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_07_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_08_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_09_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_10_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_main_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_main_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_main_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_territory_main_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_1_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_1_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_1_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_1_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_2_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_2_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_2_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_2_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_3_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_3_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_3_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_3_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_4_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_4_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_4_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_4_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_5_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_5_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_5_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_5_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_6_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_6_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_6_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_6_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_7_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_7_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_7_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_7_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_8_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_8_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_8_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_8_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_9_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_9_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_9_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_9_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_10_Create_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_10_Step_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_10_Draw_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Object_obj_villa_10_PreCreate_0(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Room_room_loading_Create(CInstance*, CInstance*)'
./obj/local/armeabi-v7a/objs/yoyo/Epic_Warriors_Pocket.vars.o:Epic_Warriors_Pocket.vars.cpp:g_GMLFuncs: error: undefined reference to 'gml_Room_room_battle_map_Create(CInstance*, CInstance*)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/armeabi-v7a/libyoyo.so] Error 1
Stats : GMA : Elapsed=3451,4102
Stats : GMA : sp=134,au=2,bk=3,pt=0,sc=23,sh=0,fo=4,tl=0,ob=81,ro=6,da=0,ex=5,ma=103,fm=0x40B20468702820


X://bin/GMAssetCompiler.exe exited with non-zero status (2)
elapsed time 00:00:06.0576199s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.5.378/bin/Igor.exe" -j=8 -options="C:\Users\Jaison\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Package started at 01/30/2020 22:33:21
"cmd" /c subst Z: /d

elapsed time 00:00:00.1076909s for command "cmd" /c subst Z: /d started at 01/30/2020 22:33:28
"cmd" /c subst Y: /d

elapsed time 00:00:00.1097254s for command "cmd" /c subst Y: /d started at 01/30/2020 22:33:28
"cmd" /c subst X: /d

elapsed time 00:00:00.1097051s for command "cmd" /c subst X: /d started at 01/30/2020 22:33:28
FAILED: Package Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.
So ... what could be happening? I can't find a solution.
 

Amon

Member
Check this script out to see if you are doing anything wrong. scr_territory_id

undefined reference to 'gml_Script_scr_territory_id(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'

Are you compiling with VM or with YYC?

Have you changed the minimum version of supported android to 16?
 
Check this script out to see if you are doing anything wrong. scr_territory_id undefined reference to 'gml_Script_scr_territory_id(CInstance*, CInstance*, YYRValue&, int, YYRValue**)'
This log quoted every time I call a script using "scr_script ()" inside an object or room. Everything is ok in the scripts. Nothing wrong with the code structure because I managed to compile in VM this morning.

Are you compiling with VM or with YYC?
When I compiled with YYC, the error popup. When I compiled in VM, the error no happend. Unfortunately the game is very slow in some parts when compiling on VM.

Have you changed the minimum version of supported android to 16?
When I choose Android API 28, it automatically chooses API 16 as the minimum API.

Thanks for your support
 

Amon

Member
There is definitely something going on in that script which the YYC Compiler is not liking. YYC is strict when it comes to undefined variables/references. I know you may think that the code is fine because it compiles with VM but it's wrong thinking. There is definitely an undefined reference in that script causing this which VM doesn't complain about.
 

chamaeleon

Member
Maybe time to take a step back and do some experiments with a new project. What happens if you try to YYC compile a blank project with only the default room? What happens if you add one object and one script that doesn't use arguments and just returns a string or a number and you just output that using show_debug_message in the create event of a single object added to the project? And so on, until you get closer to an approximation of what you are encountering with your real game..
 
Hum. Well, let me paste here the first 3 entries in this log.

First, the scr_territory_id:
Code:
//========================================================================
// Variáveis de controle dos territórios do mapa de território de batalha
//========================================================================
globalvar vgTerritoryID, vgTerritoryX, vgTerritoryY, vgTerritoryDono;
var a        = 0;
var vDiv    = 0;
repeat( 75 )
{
    vDiv = a div 6;
    vgTerritoryID[a]    = 0;
    vgTerritoryX[a]        = 0;
    vgTerritoryY[a]        = 0;
    if( vDiv = 10 ){ vDiv = 9; }
    vgTerritoryDono[a]    = "limit_" + string(vDiv);
    a++;
}
//=============================================
The obj_battle_control sees if the battle is over. If true, it resets the values of the variables in scr_territory_id to the room on the game map:

Code:
[...]
case "500":
[...]
scr_territory_id();
scr_fade( room_battle_map );
break;
[...]
The scr_fade is a script for fade in/out in the room transitions. He works fine.
In room_menu I call the script in Creation code:
Code:
scr_territory_id();
In scr_temp I have:
Code:
//==============================================================================================================
// variáveis globais que vão guardar a condição do mapa do modo batalha enquanto o jogo estiver na room_battle
//==============================================================================================================
// variáveis para registrar valores do obj_system_playersbattle
globalvar vTempPlayerColour, vTempPlayerX, vTempPlayerY, vTempPlayerAtk, vTempVillaAtk, vTempTurn, vTempTurnPlayer,
vTempTurnNum, vgXRecord, vgYRecord;
// variáveis para registrar valores das villas
globalvar vTempDono, vTempColour, vTempColourP, vTempPosse;
// variáveis de inscrição dos players no mapa de batalha
globalvar vgBattlePlayer;
vgBattlePlayer[0] = 0;
vgBattlePlayer[1] = 0;
//===========================================================================
In room_flag, I call:
Code:
scr_temp();
I can't find the error.
 

Amon

Member
globalvar vgTerritoryID, vgTerritoryX, vgTerritoryY, vgTerritoryDono;

Try to initialize each of these before using them.
 
globalvar vgTerritoryID, vgTerritoryX, vgTerritoryY, vgTerritoryDono;
Try to initialize each of these before using them.
had already declared the variables within the script. I did so then:
Code:
globalvar vgTerritoryID, vgTerritoryX, vgTerritoryY, vgTerritoryDono;
vgTerritoryID   = 0;
vgTerritoryX   = 0;
vgTerritoryY   = 0;
vgTerritoryDono = "";
var a       = 0;
var vDiv   = 0;
repeat( 75 )
{
   vDiv = a div 6;
   vgTerritoryID[a]   = 0;
   vgTerritoryX[a]       = 0;
   vgTerritoryY[a]       = 0;
   if( vDiv = 10 ){ vDiv = 9; }
   vgTerritoryDono[a]   = "limit_" + string(vDiv);
   a++;
}
//==========================================
But it did not work.

Maybe time to take a step back and do some experiments with a new project. What happens if you try to YYC compile a blank project with only the default room? What happens if you add one object and one script that doesn't use arguments and just returns a string or a number and you just output that using show_debug_message in the create event of a single object added to the project? And so on, until you get closer to an approximation of what you are encountering with your real game..
Yeah, I started doing these tests now. First I used an empty project as you suggested and the compilation using YYC worked.
So I used another smaller project that I had saved and the compilation using YYC also worked.
As Amon suggested, there must be something wrong with the code that does not allow compilation using YYC, but I can't see it.
I will do tests with the project and return to give the result.
 
had already declared the variables within the script. I did so then:
But haven't you declared all of those variables as integers and strings
Code:
vgTerritoryID   = 0;
vgTerritoryX   = 0;
vgTerritoryY   = 0;
vgTerritoryDono = "";
and then go on to use them as arrays?
Code:
vgTerritoryID[a]   = 0;
   vgTerritoryX[a]       = 0;
   vgTerritoryY[a]       = 0;
   if( vDiv = 10 ){ vDiv = 9; }
   vgTerritoryDono[a]   = "limit_" + string(vDiv);
Perhaps you need to actually declare than as arrays instead?
 
But haven't you declared all of those variables as integers and strings
Perhaps you need to actually declare than as arrays instead?
That's what I did before. I did it just to test.


So ... I started a new project and imported the resources type by type. First sprites, then tilesets, fonts, etc. When compiling.. no errors.
When I imported the scripts and objects, the errors came back! So I deleted all the scripts and objects and created a scr_test and obj_test. I tried to compile and it gave error again!

error: undefined reference to 'gml_Object_obj_test_PreCreate_0 (CInstance *, CInstance *)

What could be happening? When I compile other projects the error does not happen.
How can I report this error to yoyogames support? I do not know what else to do.
 

rIKmAN

Member
If you make a fresh project and add a script and object, does that work?
How can I report this error to yoyogames support?
Go to Help > File a Bug in the IDE and follow the instructions.
If you can attach a small example project which shows the error that will help YYG work out what the issue is.
 
If you make a fresh project and add a script and object, does that work?
Go to Help > File a Bug in the IDE and follow the instructions.
If you can attach a small example project which shows the error that will help YYG work out what the issue is.
Thanks, I will do that.
 
Hello everyone.

The support helped me to solve the problem. I cleared the program cache and everything worked fine. Finally hehehe. Thanks everyone for the help.
 
Top