Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pal9000 ~/source/azerothcore-wotlk/build # make
- Scanning dependencies of target bot
- [ 0%] Building CXX object modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:2:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:59:24: error: use of undeclared
- identifier 'urand'
- return urand(1, 10);
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:61:20: error: use of undeclared
- identifier 'urand'
- return urand(1, 4) * maxStackSize / 5;
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:89:32: error: use of undeclared
- identifier 'urand'
- maxStackSize = urand(1, 10);
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:92:32: error: use of undeclared
- identifier 'urand'
- maxStackSize = urand(1, 20);
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/Category.h:126:24: error: use of undeclared
- identifier 'urand'
- return urand(1, maxStack);
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:7:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:14:28: error: attempt to use a
- deleted function
- static AhBotConfig instance;
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBotConfig.h:87:15: note: destructor of
- 'AhBotConfig' is implicitly deleted because field 'config' has an inaccessible destructor
- ConfigMgr config;
- ^
- In file included from /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:11:
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:15:34: error:
- attempt to use a deleted function
- static PlayerbotAIConfig instance;
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/../playerbot/PlayerbotAIConfig.h:90:15: note:
- destructor of 'PlayerbotAIConfig' is implicitly deleted because field 'config' has an
- inaccessible destructor
- ConfigMgr config;
- ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:293:92: warning: format specifies type
- 'int' but the argument has type 'int64' (aka 'long') [-Wformat]
- ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], curPrice, availableMoney);
- ^~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:319:82: warning: format specifies type
- 'int' but the argument has type 'long' [-Wformat]
- ...proto->Name1.c_str(), item->GetCount(), auctionIds[auction], buytime - time(0));
- ^~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:472:64: warning: format specifies type
- 'int' but the argument has type 'long' [-Wformat]
- proto->Name1.c_str(), auctionIds[auction], sellTime - time(0));
- ^~~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:478:64: warning: format specifies type
- 'int' but the argument has type 'long' [-Wformat]
- proto->Name1.c_str(), auctionIds[auction], time(0) - sellTime);
- ^~~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:536:37: error: no member named
- 'GetGUIDObject' in 'Item'
- auctionEntry->item_guidlow = item->GetGUIDObject().GetCounter();
- ~~~~ ^
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: warning: format string is not
- a string literal (potentially insecure) [-Wformat-security]
- sLog->outBasic(out.str().c_str());
- ^~~~~~~~~~~~~~~~~
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:636:28: note: treat the string as an
- argument to avoid this
- sLog->outBasic(out.str().c_str());
- ^
- "%s",
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:55: warning: format specifies type
- 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
- sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(...
- ~~ ^~~~~~~~~~~~~~~~~
- %zu
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:74: warning: format specifies type
- 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
- sLog->outBasic("{A=%d,H=%d,N=%d} bidders loaded", bidders[1].size(), bidders[2].size(), b...
- ~~ ^~~~~~~~~~~~~~~~~
- %zu
- /root/source/azerothcore-wotlk/modules/bot/ahbot/AhBot.cpp:914:93: warning: format specifies type
- 'int' but the argument has type 'std::vector::size_type' (aka 'unsigned long') [-Wformat]
- ...%d} bidders loaded", bidders[1].size(), bidders[2].size(), bidders[3].size());
- ~~ ^~~~~~~~~~~~~~~~~
- %zu
- 8 warnings and 8 errors generated.
- make[2]: *** [modules/bot/CMakeFiles/bot.dir/build.make:63: modules/bot/CMakeFiles/bot.dir/ahbot/AhBot.cpp.o] Error 1
- make[1]: *** [CMakeFiles/Makefile2:123: modules/bot/CMakeFiles/bot.dir/all] Error 2
- make: *** [Makefile:130: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement