CjMt2 23 Posted November 12, 2024 Share Posted November 12, 2024 The following error occurs: # gmake default linking ../game.... ld: error: undefined symbol: do_otomatikav_komut1(CHARACTER*, char const*, int, int) >>> referenced by cmd.cpp >>> OBJDIR/cmd.o:(cmd_info) ld: error: undefined symbol: do_otomatikav_komut2(CHARACTER*, char const*, int, int) >>> referenced by cmd.cpp >>> OBJDIR/cmd.o:(cmd_info) clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:111: ../game] Error 1 In cmd.cpp I put: // otomatikav ACMD(do_event_flag); ACMD(do_otomatikav_komut1); ACMD(do_otomatikav_komut2); // end otomatikav before struct command_info cmd_info[] = and I put it below // otomatikav { "gskillup", do_guildskillup, 0,POS_DEAD, GM_PLAYER}, { "otomatikav_komut1", do_otomatikav_komut1, 0, POS_DEAD,GM_PLAYER}, { "otomatikav_komut2", do_otomatikav_komut2, 0, POS_DEAD,GM_PLAYER}, // end otomatikav above at { "\n", NULL, 0, POS_DEAD, GM_IMPLEMENTOR } What should I do in your opinion? For almost any problem related to FreeBSD, simply send a PM! Link to comment Share on other sites More sharing options...
Premium jking 356 Posted November 12, 2024 Premium Share Posted November 12, 2024 Did you add a functions also to cmd_general.cpp? Link to comment Share on other sites More sharing options...
CjMt2 23 Posted November 12, 2024 Author Share Posted November 12, 2024 ACMD(do_event_flag); ACMD(do_otomatikav_komut1); ACMD(do_otomatikav_komut2); { "gskillup", do_guildskillup, 0, POS_DEAD, GM_PLAYER }, { "otomatikav_komut1", do_otomatikav_komut1, 0, POS_DEAD, GM_PLAYER }, { "otomatikav_komut2", do_otomatikav_komut2, 0, POS_DEAD, GM_PLAYER }, and in cmd_general.cpp ACMD(do_guildskillup) ACMD(do_otomatikav_komut1) { ch->AggregateMonster(); } ACMD(do_otomatikav_komut2) { if (ch->CountSpecifyItem(20171) == 0 && ch->CountSpecifyItem(20172) == 0) { ch->ChatPacket(CHAT_TYPE_INFO, "|cFF00FF00|H|h[Sistem] : No Items Required to Run Auto Hunt"); return; } ch->ChatPacket(CHAT_TYPE_COMMAND, "OtomatikAvWindow"); } For almost any problem related to FreeBSD, simply send a PM! Link to comment Share on other sites More sharing options...
Premium jking 356 Posted November 12, 2024 Premium Share Posted November 12, 2024 (edited) Add {} After: ACMD(do_guildskillup) I think you deleted body of the guildskillup function Edited November 12, 2024 by jKing Link to comment Share on other sites More sharing options...
CjMt2 23 Posted November 15, 2024 Author Share Posted November 15, 2024 On 11/12/2024 at 7:05 PM, jKing said: Add {} After: ACMD(do_guildskillup) I think you deleted body of the guildskillup function I removed do_guildskillup because it was already higher For almost any problem related to FreeBSD, simply send a PM! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now