- Mesaj
- 47
- Çözümler
- 1
- Beğeni
- 7
- Puan
- 424
- Ticaret Puanı
- 0
Ana dizinden gmake clean, gmake all komutlarını çalıştırdığımda db dışında her şey sorunsuz build alınıyor ancak db build olurken en sonlara geldiğinde şöyle bir hata alıyorum :
db/src'deki Makefile dosyam :
ERROR:
compile CsvReader.cpp
CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
CsvReader.cpp:72: warning: left-hand operand of comma has no effect
CsvReader.cpp:72: warning: right-hand operand of comma has no effect
CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
CsvReader.cpp:90: warning: left-hand operand of comma has no effect
CsvReader.cpp:90: warning: right-hand operand of comma has no effect
linking ...
.obj/DBManager.o: In function `CDBManager::EscapeString(void*, void const*, unsigned long, int)':
/home/mainline/Srcs/Server/db/src/DBManager.cpp:163: undefined reference to `mysql_real_escape_string'
.obj/ClientManager.o: In function `CClientManager::RESULT_PRICELIST_LOAD_FOR_UPDATE(_SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:965: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `CClientManager::RESULT_PRICELIST_LOAD(CPeer*, _SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:922: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, _SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:874: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `CClientManager::ChangeMonarchLord(CPeer*, unsigned int, tChangeMonarchLord*)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:4199: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManager.o: In function `CClientManager::__GetAdminInfo(char const*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:3727: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManager.o: In function `CClientManager::__GetHostInfo(std::vector<std::string, std::allocator<std::string> >&)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:3780: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManager.o: In function `CClientManager::InitializeLocalization()':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:3330: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManager.o: In function `CClientManager::BlockChat(TPacketBlockChat*)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:2103: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, _SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:534: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManager.o:/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: more undefined references to `mysql_free_result' follow
.obj/ClientManager.o: In function `CClientManager::QUERY_EMPIRE_SELECT(CPeer*, unsigned int, SEmpireSelectPacket*)':
/home/mainline/Srcs/Server/db/src/ClientManager.cpp:1012: undefined reference to `mysql_fetch_row'
.obj/ClientManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerPlayer.o: In function `CClientManager::RESULT_QUEST_LOAD(CPeer*, st_mysql_res*, unsigned int, unsigned int)':
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:742: undefined reference to `mysql_num_rows'
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:759: undefined reference to `mysql_fetch_row'
.obj/ClientManagerPlayer.o: In function `CClientManager::RESULT_AFFECT_LOAD(CPeer*, st_mysql_res*, unsigned int)':
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:702: undefined reference to `mysql_num_rows'
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:715: undefined reference to `mysql_fetch_row'
.obj/ClientManagerPlayer.o: In function `CreateItemTableFromRes(st_mysql_res*, std::vector<SPlayerItem, std::allocator<SPlayerItem> >*, unsigned int)':
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:35: undefined reference to `mysql_num_rows'
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:45: undefined reference to `mysql_fetch_row'
.obj/ClientManagerPlayer.o: In function `CreatePlayerTableFromRes(st_mysql_res*, SPlayerTable*)':
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:447: undefined reference to `mysql_num_rows'
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:452: undefined reference to `mysql_fetch_row'
.obj/ClientManagerPlayer.o: In function `CClientManager::RESULT_HIGHSCORE_REGISTER(CPeer*, _SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:1258: undefined reference to `mysql_fetch_row'
.obj/ClientManagerPlayer.o: In function `CClientManager::__RESULT_PLAYER_DELETE(CPeer*, _SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:1039: undefined reference to `mysql_fetch_row'
.obj/ClientManagerPlayer.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerPlayer.o:/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: more undefined references to `mysql_free_result' follow
.obj/ClientManagerPlayer.o: In function `CClientManager::__QUERY_PLAYER_CREATE(CPeer*, unsigned int, SPlayerCreatePacket*)':
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:826: undefined reference to `mysql_fetch_row'
/home/mainline/Srcs/Server/db/src/ClientManagerPlayer.cpp:860: undefined reference to `mysql_fetch_row'
.obj/ClientManagerPlayer.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerPlayer.o:/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: more undefined references to `mysql_free_result' follow
.obj/ClientManagerLogin.o: In function `CreateAccountPlayerDataFromRes(st_mysql_res*, SAccountTable*)':
/home/mainline/Srcs/Server/db/src/ClientManagerLogin.cpp:279: undefined reference to `mysql_num_rows'
/home/mainline/Srcs/Server/db/src/ClientManagerLogin.cpp:281: undefined reference to `mysql_fetch_row'
.obj/ClientManagerLogin.o: In function `CreateAccountTableFromRes(st_mysql_res*)':
/home/mainline/Srcs/Server/db/src/ClientManagerLogin.cpp:246: undefined reference to `mysql_fetch_row'
.obj/ClientManagerLogin.o: In function `CClientManager::RESULT_LOGIN_BY_KEY(CPeer*, _SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ClientManagerLogin.cpp:200: undefined reference to `mysql_fetch_row'
.obj/ClientManagerLogin.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerLogin.o: In function `CClientManager::QUERY_CHANGE_NAME(CPeer*, unsigned int, SPacketGDChangeName*)':
/home/mainline/Srcs/Server/db/src/ClientManagerLogin.cpp:519: undefined reference to `mysql_fetch_row'
.obj/ClientManagerLogin.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeSkillTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:883: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeObjectProto()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:1244: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeLandTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:1141: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeObjectTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:1311: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeRefineTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:133: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeQuestItemTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:538: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeShopTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:470: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeItemRareTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:1068: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeItemAttrTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:994: undefined reference to `mysql_fetch_row'
.obj/ClientManagerBoot.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerBoot.o: In function `CClientManager::InitializeBanwordTable()':
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:953: undefined reference to `mysql_fetch_row'
/home/mainline/Srcs/Server/db/src/ClientManagerBoot.cpp:953: undefined reference to `mysql_fetch_row'
.obj/ClientManagerGuild.o: In function `CClientManager::GuildAddMember(CPeer*, SPacketGDGuildAddMember*)':
/home/mainline/Srcs/Server/db/src/ClientManagerGuild.cpp:49: undefined reference to `mysql_fetch_row'
.obj/ClientManagerGuild.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/GuildManager.o: In function `CGuildManager::ParseResult(_SQLResult*)':
/home/mainline/Srcs/Server/db/src/GuildManager.cpp:134: undefined reference to `mysql_fetch_row'
.obj/GuildManager.o: In function `CGuildManager::ResultRanking(st_mysql_res*)':
/home/mainline/Srcs/Server/db/src/GuildManager.cpp:229: undefined reference to `mysql_fetch_row'
.obj/GuildManager.o: In function `GetAverageGuildMemberLevel(unsigned int)':
/home/mainline/Srcs/Server/db/src/GuildManager.cpp:968: undefined reference to `mysql_fetch_row'
.obj/GuildManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/GuildManager.o:/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: more undefined references to `mysql_free_result' follow
.obj/GuildManager.o: In function `CGuildWarReserve::Initialize()':
/home/mainline/Srcs/Server/db/src/GuildManager.cpp:1228: undefined reference to `mysql_fetch_row'
.obj/GuildManager.o: In function `GetGuildMemberCount(unsigned int)':
/home/mainline/Srcs/Server/db/src/GuildManager.cpp:983: undefined reference to `mysql_fetch_row'
.obj/GuildManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/GuildManager.o: In function `CGuildManager::BootReserveWar()':
/home/mainline/Srcs/Server/db/src/GuildManager.cpp:911: undefined reference to `mysql_fetch_row'
.obj/GuildManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/HB.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/HB.o: In function `PlayerHB::Initialize()':
/home/mainline/Srcs/Server/db/src/HB.cpp:27: undefined reference to `mysql_fetch_row'
.obj/ItemAwardManager.o: In function `ItemAwardManager::Load(_SQLMsg*)':
/home/mainline/Srcs/Server/db/src/ItemAwardManager.cpp:33: undefined reference to `mysql_fetch_row'
.obj/ClientManagerEventFlag.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerEventFlag.o: In function `CClientManager::LoadEventFlag()':
/home/mainline/Srcs/Server/db/src/ClientManagerEventFlag.cpp:19: undefined reference to `mysql_fetch_row'
.obj/Marriage.o: In function `marriage::CManager::Initialize()':
/home/mainline/Srcs/Server/db/src/Marriage.cpp:53: undefined reference to `mysql_fetch_row'
.obj/Marriage.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/Marriage.o:/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: more undefined references to `mysql_free_result' follow
.obj/Monarch.o: In function `CMonarch::SetMonarch(char const*)':
/home/mainline/Srcs/Server/db/src/Monarch.cpp:224: undefined reference to `mysql_fetch_row'
.obj/Monarch.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/Monarch.o: In function `CMonarch::LoadMonarch()':
/home/mainline/Srcs/Server/db/src/Monarch.cpp:189: undefined reference to `mysql_fetch_row'
.obj/Monarch.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/BlockCountry.o: In function `CBlockCountry::Load()':
/home/mainline/Srcs/Server/db/src/BlockCountry.cpp:59: undefined reference to `mysql_fetch_row'
.obj/BlockCountry.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/BlockCountry.o: In function `CBlockCountry::Load()':
/home/mainline/Srcs/Server/db/src/BlockCountry.cpp:88: undefined reference to `mysql_fetch_row'
.obj/BlockCountry.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ItemIDRangeManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ItemIDRangeManager.o: In function `CItemIDRangeManager::BuildRange(unsigned int, unsigned int, tItemIDRange&)':
/home/mainline/Srcs/Server/db/src/ItemIDRangeManager.cpp:102: undefined reference to `mysql_fetch_row'
/home/mainline/Srcs/Server/db/src/ItemIDRangeManager.cpp:134: undefined reference to `mysql_fetch_row'
.obj/ItemIDRangeManager.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerHorseName.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
.obj/ClientManagerHorseName.o: In function `CClientManager::AckHorseName(unsigned int, CPeer*)':
/home/mainline/Srcs/Server/db/src/ClientManagerHorseName.cpp:33: undefined reference to `mysql_fetch_row'
.obj/ClientManagerHorseName.o: In function `~_SQLResult':
/home/mainline/Srcs/Server/db/src/../../libsql/AsyncSQL.h:30: undefined reference to `mysql_free_result'
../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::EscapeString(char*, unsigned int, char const*, unsigned int)':
AsyncSQL.cpp:(.text+0x251): undefined reference to `mysql_real_escape_string'
../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Connect()':
AsyncSQL.cpp:(.text+0x442): undefined reference to `mysql_init'
AsyncSQL.cpp:(.text+0x4a5): undefined reference to `mysql_real_connect'
AsyncSQL.cpp:(.text+0x4c8): undefined reference to `mysql_options'
AsyncSQL.cpp:(.text+0x502): undefined reference to `mysql_thread_id'
AsyncSQL.cpp:(.text+0x530): undefined reference to `mysql_options'
AsyncSQL.cpp:(.text+0x540): undefined reference to `mysql_error'
AsyncSQL.cpp:(.text+0x566): undefined reference to `mysql_error'
AsyncSQL.cpp:(.text+0x58c): undefined reference to `mysql_error'
../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::QueryLocaleSet()':
AsyncSQL.cpp:(.text+0x681): undefined reference to `mysql_set_character_set'
AsyncSQL.cpp:(.text+0x68d): undefined reference to `mysql_error'
AsyncSQL.cpp:(.text+0x697): undefined reference to `mysql_errno'
../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Destroy()':
AsyncSQL.cpp:(.text+0x75f): undefined reference to `mysql_close'
../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::DirectQuery(char const*)':
AsyncSQL.cpp:(.text+0xbf2): undefined reference to `mysql_thread_id'
AsyncSQL.cpp:(.text+0xc2c): undefined reference to `mysql_thread_id'
AsyncSQL.cpp:(.text+0xcd3): undefined reference to `mysql_real_query'
AsyncSQL.cpp:(.text+0xce8): undefined reference to `mysql_num_rows'
AsyncSQL.cpp:(.text+0xd0e): undefined reference to `mysql_next_result'
AsyncSQL.cpp:(.text+0xd4c): undefined reference to `mysql_store_result'
AsyncSQL.cpp:(.text+0xd5b): undefined reference to `mysql_insert_id'
AsyncSQL.cpp:(.text+0xd6b): undefined reference to `mysql_affected_rows'
AsyncSQL.cpp:(.text+0xdab): undefined reference to `mysql_next_result'
AsyncSQL.cpp:(.text+0xdd1): undefined reference to `mysql_error'
AsyncSQL.cpp:(.text+0xe1d): undefined reference to `mysql_errno'
../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::ChildLoop()':
AsyncSQL.cpp:(.text+0x2afa): undefined reference to `mysql_thread_id'
AsyncSQL.cpp:(.text+0x2b36): undefined reference to `mysql_thread_id'
AsyncSQL.cpp:(.text+0x2b5b): undefined reference to `mysql_real_query'
AsyncSQL.cpp:(.text+0x2b71): undefined reference to `mysql_errno'
AsyncSQL.cpp:(.text+0x2b88): undefined reference to `mysql_error'
AsyncSQL.cpp:(.text+0x2ca1): undefined reference to `mysql_free_result'
AsyncSQL.cpp:(.text+0x2d44): undefined reference to `mysql_num_rows'
AsyncSQL.cpp:(.text+0x2d6a): undefined reference to `mysql_next_result'
AsyncSQL.cpp:(.text+0x2da8): undefined reference to `mysql_store_result'
AsyncSQL.cpp:(.text+0x2db7): undefined reference to `mysql_insert_id'
AsyncSQL.cpp:(.text+0x2dc7): undefined reference to `mysql_affected_rows'
AsyncSQL.cpp:(.text+0x2e07): undefined reference to `mysql_next_result'
AsyncSQL.cpp:(.text+0x2e8b): undefined reference to `mysql_thread_id'
AsyncSQL.cpp:(.text+0x2ec6): undefined reference to `mysql_thread_id'
AsyncSQL.cpp:(.text+0x2eeb): undefined reference to `mysql_real_query'
AsyncSQL.cpp:(.text+0x2f01): undefined reference to `mysql_errno'
AsyncSQL.cpp:(.text+0x2f15): undefined reference to `mysql_error'
AsyncSQL.cpp:(.text+0x2fe0): undefined reference to `mysql_free_result'
AsyncSQL.cpp:(.text+0x3079): undefined reference to `mysql_num_rows'
AsyncSQL.cpp:(.text+0x309f): undefined reference to `mysql_next_result'
AsyncSQL.cpp:(.text+0x30dd): undefined reference to `mysql_store_result'
AsyncSQL.cpp:(.text+0x30ec): undefined reference to `mysql_insert_id'
AsyncSQL.cpp:(.text+0x30fc): undefined reference to `mysql_affected_rows'
AsyncSQL.cpp:(.text+0x313c): undefined reference to `mysql_next_result'
Makefile:55: recipe for target '../db_r40020' failed
gmake[1]: *** [../db_r40020] Error 1
gmake[1]: Leaving directory '/home/mainline/Srcs/Server/db/src'
Makefile:80: recipe for target 'all' failed
gmake: *** [all] Error 2
db/src'deki Makefile dosyam :
db/src Makefile:
MAKE = gmake
CC = g++
INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj
GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3 | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
#P4_VERSION = $(shell svnversion -n .)
SVN_VERSION = $(shell cat ../../__VERSION__)
P4_VERSION = $(shell cat ../../__VERSION__)
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
TARGET = $(BINDIR)/db_r$(P4_VERSION)
CFLAGS = -g -Wall -O2 -pipe -fno-rtti -fno-exceptions -pthread -fno-strict-aliasing -D_THREAD_SAFE
ifeq ($(GCC_VERSION), 4)
CFLAGS += -mtune=i686
else
CFLAGS += -mcpu=i686
endif
# boost
INCDIR += -I../../../Extern/include/boost
# MySQL
INCDIR += -I/usr/local/include/mysql
LIBDIR += -L/usr/local/lib/mysql
LIBS += /usr/local/lib/mysql/libmysqlclient.a /usr/lib/libz.a
# Project Libraries
INCDIR += -I/usr/local/include
INCDIR += -I../../../Extern/include
LIBDIR += -I../../../Extern/lib
LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
SRCS = Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp \
Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp \
ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp \
PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp \
Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp \
AuctionManager.cpp ProtoReader.cpp CsvReader.cpp
OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
default: $(TARGET)
$(TARGET): $(OBJS)
@echo linking ...
@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
@touch version.cpp
$(OBJDIR)/%.o: %.cpp
@echo compile $<
@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
$(OBJDIR)/version.o: version.cpp
@$(CC) $(CFLAGS) -D__USER__=\"$(USER)\" -D__HOSTNAME__=\"$(HOSTNAME)\" -D__PWD__=\"$(PWD)\" -D__P4_VERSION__=\"$(P4_VERSION)\" -c $< -o $@
@echo compile $<
$(OBJDIR):
@mkdir $(OBJDIR)
clean:
@rm -f $(OBJS) $(BINDIR)/db_r*
dep:
@touch Depend
makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
sinclude Depend