katos
Noble Member
Hey guys,
Having an error in the compile of custom scripts, not sure what is going on... I have tried my best to fix errors myself with my friend Agger, but I am rather stumped by this one...
Error:
Scriptloader.cpp:
Thanks for any help,
Katos
- - - Updated - - -
PS: Please note that this is running on linux - ubuntu
Having an error in the compile of custom scripts, not sure what is going on... I have tried my best to fix errors myself with my friend Agger, but I am rather stumped by this one...
Error:
Code:
../game/libgame.a(ScriptLoader.cpp.o): In function `AddScripts()':
ScriptLoader.cpp:(.text+0xe06): undefined reference to `AddSC_Professions_NPC()'
ScriptLoader.cpp:(.text+0xe0b): undefined reference to `AddSC_stationery_add_create()'
ScriptLoader.cpp:(.text+0xe11): undefined reference to `AddSC_Snowman_Helper()'
../game/libgame.a(ScriptLoader.cpp.o): In function `AddCustomScripts()':
ScriptLoader.cpp:(.text+0xea5): undefined reference to `AddSC_Professions_NPC()'
ScriptLoader.cpp:(.text+0xeaa): undefined reference to `AddSC_stationery_add_create()'
ScriptLoader.cpp:(.text+0xeaf): undefined reference to `AddSC_Snowman_Helper()'
../game/libgame.a(ScriptLoader.cpp.o): In function `AddScripts()':
ScriptLoader.cpp:(.text+0xe1a): undefined reference to `AddSC_TitleNpc()'
../game/libgame.a(ScriptLoader.cpp.o): In function `AddCustomScripts()':
ScriptLoader.cpp:(.text+0xeb8): undefined reference to `AddSC_TitleNpc()'
collect2: ld returned 1 exit status
make[2]: *** [src/server/worldserver/worldserver] Error 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [all] Error 2
Scriptloader.cpp:
Code:
#ifdef SCRIPTS
/* This is where custom scripts' loading functions should be declared. */
void AddSC_Professions_NPC();
void AddSC_stationery_add_create();
void AddSC_Snowman_Helper();
void AddSC_The_Grinch();
void AddSC_TitleNpc();
#endif
void AddCustomScripts()
{
#ifdef SCRIPTS
/* This is where custom scripts should be added. */
AddSC_Professions_NPC();
AddSC_stationery_add_create();
AddSC_Snowman_Helper();
AddSC_The_Grinch();
AddSC_TitleNpc();
#endif
}
Thanks for any help,
Katos
- - - Updated - - -
PS: Please note that this is running on linux - ubuntu
Last edited: