Yardım db build alırken aldığım hata

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

poi

Üye
Üye
Mesaj
44
Beğeni
7
Puan
421
Ticaret Puanı
0
Merhabalar, db'yi ana dizinden gmake clean ve gmake all yaparak build almayı denerken hatalarla karşılaştım. Tam istediğim gibi bir konu kuramadım ancak eksik bilgi verdiysem bilgilendirirseniz düzeltirim.

ERROR:
compile Config.cpp
compile NetBase.cpp
In file included from ClientManager.h:13,
                 from NetBase.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from NetBase.cpp:4:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/NetBase.o' failed
gmake[1]: *** [.obj/NetBase.o] Error 1
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/db/src'
Makefile:80: recipe for target 'all' failed
gmake: *** [all] Error 2

Bu da MakeFile dosyam

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

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

#MYSQL
INCDIR += -I../../../../../../usr/local/include/mysql
LIBDIR += -L../../../../../../usr/local/include/mysql
LIBS += /usr/local/lib/mysql/libmysqlclient.a /usr/lib/libz.a

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
 
Bu Makefile'yi siz mi hazırladınız? Bu çok kötü bir dosya yolu yazma yöntemi.

Kod:
#MYSQL
INCDIR += -I../../../../../../usr/local/include/mysql
LIBDIR += -L../../../../../../usr/local/include/mysql

Makefile'nizi bu şekilde değiştirerek dener misiniz?
Kod:
MAKE = gmake
CC = g++

INCDIR = -I/usr/local/include
LIBDIR = -L/usr/local/lib
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
CFLAGS += -mtune=i686

# boost
INCDIR += -I../../../Extern/include/boost

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

# MySQL
LIBS += /usr/local/lib/mysql/libmysqlclient.a /usr/lib/libz.a /usr/local/lib/libzstd.a

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
 
Bu Makefile'yi siz mi hazırladınız? Bu çok kötü bir dosya yolu yazma yöntemi.

Kod:
#MYSQL
INCDIR += -I../../../../../../usr/local/include/mysql
LIBDIR += -L../../../../../../usr/local/include/mysql

Makefile'nizi bu şekilde değiştirerek dener misiniz?
Kod:
MAKE = gmake
CC = g++

INCDIR = -I/usr/local/include
LIBDIR = -L/usr/local/lib
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
CFLAGS += -mtune=i686

# boost
INCDIR += -I../../../Extern/include/boost

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

# MySQL
LIBS += /usr/local/lib/mysql/libmysqlclient.a /usr/lib/libz.a /usr/local/lib/libzstd.a

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

Başka bir forumdan almıştım, bana da yanlış hissettirdi ama işimi gördüğü için çok üzerinde durmamıştım.

.:
MYSQL_INCDIR = -I/usr/local/include/mysql
MYSQL_LIBDIR = -L/usr/local/lib/mysql

INCDIR += $(MYSQL_INCDIR)
LIBDIR += $(MYSQL_LIBDIR)

Herhalde buna benzer bir şekilde kullanmam daha doğru olucaktı.

Şimdi test ettim yolladığınız halini ancak hata almaya devam ediyorum.

Error:
compile NetBase.cpp
compile DBManager.cpp
compile Cache.cpp
compile LoginData.cpp
compile ClientManager.cpp
compile Main.cpp
In file included from Main.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.cpp:2:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from Cache.cpp:6:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from NetBase.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from LoginData.cpp:3:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'In file included from ClientManager.h:13,
                 from ClientManager.cpp:9:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory

../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
In file included from DBManager.h:10../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory

In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from NetBase.cpp:4:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from Main.cpp:5:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from Main.cpp:6:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from LoginData.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from DBManager.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/Main.o' failed
gmake: *** [.obj/Main.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scopeMakefile:55: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1

../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from Cache.cpp:6:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/LoginData.o' failed
gmake: *** [.obj/LoginData.o] Error 1
DBManager.cpp: In member function 'long unsigned int CDBManager::EscapeString(void*, const void*, long unsigned int, int)':
DBManager.cpp:163: error: 'class CAsyncSQL2' has no member named 'GetSQLHandle'
DBManager.cpp:163: error: 'mysql_real_escape_string' was not declared in this scope
Makefile:55: recipe for target '.obj/DBManager.o' failed
gmake: *** [.obj/DBManager.o] Error 1
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.cpp:9:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/Cache.o' failed
gmake: *** [.obj/Cache.o] Error 1
In file included from ClientManager.cpp:15:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
ClientManager.cpp:33: error: 'MYSQL_RES' was not declared in this scope
ClientManager.cpp:33: error: 'res' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before '*' token
ClientManager.cpp:33: error: 'pVec' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before 'dwPID'
ClientManager.cpp:33: error: initializer expression list treated as compound expression
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:534: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:534: error: expected `;' before 'row'
ClientManager.cpp:537: error: 'row' was not declared in this scope
ClientManager.cpp:545: error: 'row' was not declared in this scope
ClientManager.cpp:550: error: 'row' was not declared in this scope
ClientManager.cpp:604: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'CreateItemTableFromRes' cannot be used as a function
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, SQLMsg*)':
ClientManager.cpp:874: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:874: error: expected `;' before 'row'
ClientManager.cpp:876: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:920: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:920: error: expected `;' before 'row'
ClientManager.cpp:922: error: 'row' was not declared in this scope
ClientManager.cpp:922: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:922: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD_FOR_UPDATE(SQLMsg*)':
ClientManager.cpp:963: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:963: error: expected `;' before 'row'
ClientManager.cpp:965: error: 'row' was not declared in this scope
ClientManager.cpp:965: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:965: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::QUERY_EMPIRE_SELECT(CPeer*, DWORD, TEmpireSelectPacket*)':
ClientManager.cpp:1012: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:1012: error: expected `;' before 'row'
ClientManager.cpp:1034: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::BlockChat(TPacketBlockChat*)':
ClientManager.cpp:2103: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:2103: error: expected `;' before 'row'
ClientManager.cpp:2104: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'int CClientManager::AnalyzeQueryResult(SQLMsg*)':
ClientManager.cpp:2838: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp: In member function 'bool CClientManager::InitializeLocalization()':
ClientManager.cpp:3328: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3328: error: expected `;' before 'row'
ClientManager.cpp:3330: error: 'row' was not declared in this scope
ClientManager.cpp:3330: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3330: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
ClientManager.cpp:3724: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3724: error: expected `;' before 'row'
ClientManager.cpp:3727: error: 'row' was not declared in this scope
ClientManager.cpp:3727: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3727: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetHostInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
ClientManager.cpp:3778: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3778: error: expected `;' before 'row'
ClientManager.cpp:3780: error: 'row' was not declared in this scope
ClientManager.cpp:3780: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3780: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::ChangeMonarchLord(CPeer*, DWORD, TPacketChangeMonarchLord*)':
ClientManager.cpp:4199: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:4199: error: expected `;' before 'row'
ClientManager.cpp:4200: error: 'row' was not declared in this scope
Makefile:55: recipe for target '.obj/ClientManager.o' failed
gmake: *** [.obj/ClientManager.o] Error 1
 
Başka bir forumdan almıştım, bana da yanlış hissettirdi ama işimi gördüğü için çok üzerinde durmamıştım.

.:
MYSQL_INCDIR = -I/usr/local/include/mysql
MYSQL_LIBDIR = -L/usr/local/lib/mysql

INCDIR += $(MYSQL_INCDIR)
LIBDIR += $(MYSQL_LIBDIR)

Herhalde buna benzer bir şekilde kullanmam daha doğru olucaktı.

Şimdi test ettim yolladığınız halini ancak hata almaya devam ediyorum.

Error:
compile NetBase.cpp
compile DBManager.cpp
compile Cache.cpp
compile LoginData.cpp
compile ClientManager.cpp
compile Main.cpp
In file included from Main.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.cpp:2:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from Cache.cpp:6:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from NetBase.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from LoginData.cpp:3:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'In file included from ClientManager.h:13,
                 from ClientManager.cpp:9:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory

../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
In file included from DBManager.h:10../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory

In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from NetBase.cpp:4:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from Main.cpp:5:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from Main.cpp:6:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from LoginData.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from DBManager.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/Main.o' failed
gmake: *** [.obj/Main.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scopeMakefile:55: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1

../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from Cache.cpp:6:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/LoginData.o' failed
gmake: *** [.obj/LoginData.o] Error 1
DBManager.cpp: In member function 'long unsigned int CDBManager::EscapeString(void*, const void*, long unsigned int, int)':
DBManager.cpp:163: error: 'class CAsyncSQL2' has no member named 'GetSQLHandle'
DBManager.cpp:163: error: 'mysql_real_escape_string' was not declared in this scope
Makefile:55: recipe for target '.obj/DBManager.o' failed
gmake: *** [.obj/DBManager.o] Error 1
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.cpp:9:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/Cache.o' failed
gmake: *** [.obj/Cache.o] Error 1
In file included from ClientManager.cpp:15:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
ClientManager.cpp:33: error: 'MYSQL_RES' was not declared in this scope
ClientManager.cpp:33: error: 'res' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before '*' token
ClientManager.cpp:33: error: 'pVec' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before 'dwPID'
ClientManager.cpp:33: error: initializer expression list treated as compound expression
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:534: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:534: error: expected `;' before 'row'
ClientManager.cpp:537: error: 'row' was not declared in this scope
ClientManager.cpp:545: error: 'row' was not declared in this scope
ClientManager.cpp:550: error: 'row' was not declared in this scope
ClientManager.cpp:604: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'CreateItemTableFromRes' cannot be used as a function
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, SQLMsg*)':
ClientManager.cpp:874: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:874: error: expected `;' before 'row'
ClientManager.cpp:876: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:920: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:920: error: expected `;' before 'row'
ClientManager.cpp:922: error: 'row' was not declared in this scope
ClientManager.cpp:922: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:922: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD_FOR_UPDATE(SQLMsg*)':
ClientManager.cpp:963: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:963: error: expected `;' before 'row'
ClientManager.cpp:965: error: 'row' was not declared in this scope
ClientManager.cpp:965: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:965: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::QUERY_EMPIRE_SELECT(CPeer*, DWORD, TEmpireSelectPacket*)':
ClientManager.cpp:1012: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:1012: error: expected `;' before 'row'
ClientManager.cpp:1034: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::BlockChat(TPacketBlockChat*)':
ClientManager.cpp:2103: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:2103: error: expected `;' before 'row'
ClientManager.cpp:2104: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'int CClientManager::AnalyzeQueryResult(SQLMsg*)':
ClientManager.cpp:2838: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp: In member function 'bool CClientManager::InitializeLocalization()':
ClientManager.cpp:3328: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3328: error: expected `;' before 'row'
ClientManager.cpp:3330: error: 'row' was not declared in this scope
ClientManager.cpp:3330: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3330: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
ClientManager.cpp:3724: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3724: error: expected `;' before 'row'
ClientManager.cpp:3727: error: 'row' was not declared in this scope
ClientManager.cpp:3727: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3727: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetHostInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
ClientManager.cpp:3778: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3778: error: expected `;' before 'row'
ClientManager.cpp:3780: error: 'row' was not declared in this scope
ClientManager.cpp:3780: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3780: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::ChangeMonarchLord(CPeer*, DWORD, TPacketChangeMonarchLord*)':
ClientManager.cpp:4199: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:4199: error: expected `;' before 'row'
ClientManager.cpp:4200: error: 'row' was not declared in this scope
Makefile:55: recipe for target '.obj/ClientManager.o' failed
gmake: *** [.obj/ClientManager.o] Error 1
Makinenizde MySQL kurulu mu? Kuruluysa hangi sürümü?
 
db/src klasörüne gidip
Kod:
gmake clean
gmake dep
gmake -j6
yaptınız mı sırayla?
 
db/src klasörüne gidip
Kod:
gmake clean
gmake dep
gmake -j6
yaptınız mı sırayla?
gmake dep'i atlamış olabilirim diye tekrardan çalıştırdım hepsini ancak hala hata alıyorum.

Error:
In file included from Main.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.h:13,
                 from NetBase.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
compile Cache.cpp
compile DBManager.cpp
compile LoginData.cpp
In file included from Main.cpp:5:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
compile ClientManager.cpp
In file included from Main.cpp:6:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
In file included from DBManager.cpp:2:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from LoginData.cpp:3:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
Makefile:55: recipe for target '.obj/Main.o' failed
gmake: *** [.obj/Main.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from NetBase.cpp:4:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from ClientManager.h:13,
                 from Cache.cpp:6:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
Makefile:55: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from LoginData.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from ClientManager.h:13,
                 from ClientManager.cpp:9:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from DBManager.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from Cache.cpp:6:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/LoginData.o' failed
gmake: *** [.obj/LoginData.o] Error 1
DBManager.cpp: In member function 'long unsigned int CDBManager::EscapeString(void*, const void*, long unsigned int, int)':
DBManager.cpp:163: error: 'class CAsyncSQL2' has no member named 'GetSQLHandle'
DBManager.cpp:163: error: 'mysql_real_escape_string' was not declared in this scope
Makefile:55: recipe for target '.obj/DBManager.o' failed
gmake: *** [.obj/DBManager.o] Error 1
Makefile:55: recipe for target '.obj/Cache.o' failed
gmake: *** [.obj/Cache.o] Error 1
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.cpp:9:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from ClientManager.cpp:15:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
ClientManager.cpp:33: error: 'MYSQL_RES' was not declared in this scope
ClientManager.cpp:33: error: 'res' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before '*' token
ClientManager.cpp:33: error: 'pVec' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before 'dwPID'
ClientManager.cpp:33: error: initializer expression list treated as compound expression
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:534: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:534: error: expected `;' before 'row'
ClientManager.cpp:537: error: 'row' was not declared in this scope
ClientManager.cpp:545: error: 'row' was not declared in this scope
ClientManager.cpp:550: error: 'row' was not declared in this scope
ClientManager.cpp:604: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'CreateItemTableFromRes' cannot be used as a function
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, SQLMsg*)':
ClientManager.cpp:874: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:874: error: expected `;' before 'row'
ClientManager.cpp:876: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:920: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:920: error: expected `;' before 'row'
ClientManager.cpp:922: error: 'row' was not declared in this scope
ClientManager.cpp:922: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:922: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD_FOR_UPDATE(SQLMsg*)':
ClientManager.cpp:963: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:963: error: expected `;' before 'row'
ClientManager.cpp:965: error: 'row' was not declared in this scope
ClientManager.cpp:965: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:965: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::QUERY_EMPIRE_SELECT(CPeer*, DWORD, TEmpireSelectPacket*)':
ClientManager.cpp:1012: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:1012: error: expected `;' before 'row'
ClientManager.cpp:1034: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::BlockChat(TPacketBlockChat*)':
ClientManager.cpp:2103: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:2103: error: expected `;' before 'row'
ClientManager.cpp:2104: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'int CClientManager::AnalyzeQueryResult(SQLMsg*)':
ClientManager.cpp:2838: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp: In member function 'bool CClientManager::InitializeLocalization()':
ClientManager.cpp:3328: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3328: error: expected `;' before 'row'
ClientManager.cpp:3330: error: 'row' was not declared in this scope
ClientManager.cpp:3330: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3330: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
ClientManager.cpp:3724: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3724: error: expected `;' before 'row'
ClientManager.cpp:3727: error: 'row' was not declared in this scope
ClientManager.cpp:3727: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3727: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetHostInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
ClientManager.cpp:3778: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3778: error: expected `;' before 'row'
ClientManager.cpp:3780: error: 'row' was not declared in this scope
ClientManager.cpp:3780: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3780: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::ChangeMonarchLord(CPeer*, DWORD, TPacketChangeMonarchLord*)':
ClientManager.cpp:4199: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:4199: error: expected `;' before 'row'
ClientManager.cpp:4200: error: 'row' was not declared in this scope
Makefile:55: recipe for target '.obj/ClientManager.o' failed
gmake: *** [.obj/ClientManager.o] Error 1
 
WinSCP ile /usr/local/include konumuna gidip mysql klasörü var mı yok mu kontrol edebilir misiniz?
 
Yeni farkettim, sizin problem DB'de değil, libsql'de. Libsql makefile'ni buraya kod satırı içinde ekleyebilir misin?
 
Yeni farkettim, sizin problem DB'de değil, libsql'de. Libsql makefile'ni buraya kod satırı içinde ekleyebilir misin?
Buyrun hocam

LibSQL MakeFile:
#CXX    = distcc i386-obrien-freebsd5-g++
CXX    = g++

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

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)
SVN_VERSION = $(shell svnversion -n -c . | cut -d':' -f2)

BIN     = ./libsql.a

ifeq ($(GCC_VERSION), 4)
IFLAGS = -I../libmysql/7.x-5.1.35
CFLAGS  = $(IFLAGS) -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions
else
IFLAGS = -I../libmysql/5.x-5.1.35
CFLAGS  = $(IFLAGS) -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions
endif

LIBS =

OBJFILES = AsyncSQL.o Semaphore.o Tellwait.o Statement.o

default:
    $(MAKE) $(BIN)

$(BIN): $(OBJFILES)
    ar cru $(BIN) $(OBJFILES) $(LIBS)
    ranlib $(BIN)
    chmod 700 $(BIN)

clean:
    rm -f *.o
    rm -f $(BIN)

dep:
    touch Depend
    $(CXX) $(CFLAGS) -MM *.cpp > Depend

$(OBJFILES):
    $(CXX) $(CFLAGS) -c $<

sinclude Depend
 
Bununla değiştirip tekrar build alabilir misin
Kod:
CXX    = g++

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

BIN     = ./libsql.a

IFLAGS = -I/usr/local/include
CFLAGS  = $(IFLAGS) -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions

LIBS =

OBJFILES = AsyncSQL.o Semaphore.o Tellwait.o Statement.o

default:
    $(MAKE) $(BIN)

$(BIN): $(OBJFILES)
    ar cru $(BIN) $(OBJFILES) $(LIBS)
    ranlib $(BIN)
    chmod 700 $(BIN)

clean:
    rm -f *.o
    rm -f $(BIN)

dep:
    touch Depend
    $(CXX) $(CFLAGS) -MM *.cpp > Depend

$(OBJFILES):
    $(CXX) $(CFLAGS) -c $<

sinclude Depend
 
Bununla değiştirip tekrar build alabilir misin
Kod:
CXX    = g++

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

BIN     = ./libsql.a

IFLAGS = -I/usr/local/include
CFLAGS  = $(IFLAGS) -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions

LIBS =

OBJFILES = AsyncSQL.o Semaphore.o Tellwait.o Statement.o

default:
    $(MAKE) $(BIN)

$(BIN): $(OBJFILES)
    ar cru $(BIN) $(OBJFILES) $(LIBS)
    ranlib $(BIN)
    chmod 700 $(BIN)

clean:
    rm -f *.o
    rm -f $(BIN)

dep:
    touch Depend
    $(CXX) $(CFLAGS) -MM *.cpp > Depend

$(OBJFILES):
    $(CXX) $(CFLAGS) -c $<

sinclude Depend
Düzelmedi hocam sanırsam.

ERROR:
compile Lock.cpp
In file included from Main.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
compile DBManager.cpp
compile Cache.cpp
compile LoginData.cpp
In file included from DBManager.cpp:2:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from ClientManager.h:13,
                 from NetBase.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.h:13,
                 from Cache.cpp:6:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from Main.cpp:5:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from ClientManager.h:13,
                 from LoginData.cpp:3:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
compile ClientManager.cpp
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from NetBase.cpp:4:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from Main.cpp:6:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/Main.o' failed
gmake: *** [.obj/Main.o] Error 1
gmake: *** Waiting for unfinished jobs....
Makefile:55: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from Cache.cpp:6:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from LoginData.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from ClientManager.h:13,
                 from ClientManager.cpp:9:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/Cache.o' failed
gmake: *** [.obj/Cache.o] Error 1
Makefile:55: recipe for target '.obj/LoginData.o' failed
gmake: *** [.obj/LoginData.o] Error 1
DBManager.cpp: In member function 'long unsigned int CDBManager::EscapeString(void*, const void*, long unsigned int, int)':
DBManager.cpp:163: error: 'class CAsyncSQL2' has no member named 'GetSQLHandle'
DBManager.cpp:163: error: 'mysql_real_escape_string' was not declared in this scope
Makefile:55: recipe for target '.obj/DBManager.o' failed
gmake: *** [.obj/DBManager.o] Error 1
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.cpp:9:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from ClientManager.cpp:15:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
ClientManager.cpp:33: error: 'MYSQL_RES' was not declared in this scope
ClientManager.cpp:33: error: 'res' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before '*' token
ClientManager.cpp:33: error: 'pVec' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before 'dwPID'
ClientManager.cpp:33: error: initializer expression list treated as compound expression
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:534: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:534: error: expected `;' before 'row'
ClientManager.cpp:537: error: 'row' was not declared in this scope
ClientManager.cpp:545: error: 'row' was not declared in this scope
ClientManager.cpp:550: error: 'row' was not declared in this scope
ClientManager.cpp:604: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'CreateItemTableFromRes' cannot be used as a function
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, SQLMsg*)':
ClientManager.cpp:874: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:874: error: expected `;' before 'row'
ClientManager.cpp:876: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:920: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:920: error: expected `;' before 'row'
ClientManager.cpp:922: error: 'row' was not declared in this scope
ClientManager.cpp:922: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:922: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD_FOR_UPDATE(SQLMsg*)':
ClientManager.cpp:963: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:963: error: expected `;' before 'row'
ClientManager.cpp:965: error: 'row' was not declared in this scope
ClientManager.cpp:965: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:965: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::QUERY_EMPIRE_SELECT(CPeer*, DWORD, TEmpireSelectPacket*)':
ClientManager.cpp:1012: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:1012: error: expected `;' before 'row'
ClientManager.cpp:1034: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::BlockChat(TPacketBlockChat*)':
ClientManager.cpp:2103: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:2103: error: expected `;' before 'row'
ClientManager.cpp:2104: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'int CClientManager::AnalyzeQueryResult(SQLMsg*)':
ClientManager.cpp:2838: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp: In member function 'bool CClientManager::InitializeLocalization()':
ClientManager.cpp:3328: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3328: error: expected `;' before 'row'
ClientManager.cpp:3330: error: 'row' was not declared in this scope
ClientManager.cpp:3330: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3330: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
ClientManager.cpp:3724: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3724: error: expected `;' before 'row'
ClientManager.cpp:3727: error: 'row' was not declared in this scope
ClientManager.cpp:3727: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3727: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetHostInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
ClientManager.cpp:3778: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3778: error: expected `;' before 'row'
ClientManager.cpp:3780: error: 'row' was not declared in this scope
ClientManager.cpp:3780: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3780: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::ChangeMonarchLord(CPeer*, DWORD, TPacketChangeMonarchLord*)':
ClientManager.cpp:4199: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:4199: error: expected `;' before 'row'
ClientManager.cpp:4200: error: 'row' was not declared in this scope
Makefile:55: recipe for target '.obj/ClientManager.o' failed
gmake: *** [.obj/ClientManager.o] Error 1
 
Biraz düşük bir ihtimal ama makefile'leri dosyaları derlediğin sanal makineye atmayı unutuyor olabilir misin?
 
Bir de bunu kontrol eder misin?
Var hocam, outputtaki bulamadığı mysql.h gibi dosyaların hepsi aslında var ama nedense görmüyor. Şimdi libsql'deki makefile'ı düzelttim ve buildledim ancak hata devam ediyor.

error:
In file included from Main.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
compile DBManager.cpp
In file included from DBManager.cpp:2:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
compile Cache.cpp
In file included from DBManager.h:10,
                 from Main.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.h:13,
                 from NetBase.cpp:4:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from Main.cpp:5:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from DBManager.h:10,
                 from DBManager.cpp:2:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no typeIn file included from ClientManager.h:13,
                 from Cache.cpp:6:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory

../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
In file included from DBManager.h:10../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
compile LoginData.cpp
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from Main.cpp:6:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
compile ClientManager.cpp
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from NetBase.cpp:4:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from NetBase.cpp:4:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from DBManager.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
DBManager.cpp: In member function 'long unsigned int CDBManager::EscapeString(void*, const void*, long unsigned int, int)':
DBManager.cpp:163: error: 'class CAsyncSQL2' has no member named 'GetSQLHandle'
DBManager.cpp:163: error: 'mysql_real_escape_string' was not declared in this scope
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from Cache.cpp:6:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.h:13,
                 from LoginData.cpp:3:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from Cache.cpp:6:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/NetBase.o' failed
gmake: *** [.obj/NetBase.o] Error 1
gmake: *** Waiting for unfinished jobs....
Makefile:55: recipe for target '.obj/Main.o' failed
gmake: *** [.obj/Main.o] Error 1
Makefile:55: recipe for target '.obj/DBManager.o' failed
gmake: *** [.obj/DBManager.o] Error 1
Makefile:55: recipe for target '.obj/Cache.o' failed
gmake: *** [.obj/Cache.o] Error 1
In file included from ClientManager.h:13,
                 from ClientManager.cpp:9:
DBManager.h:8:25: error: mysql/mysql.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
../../libsql/AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from LoginData.cpp:3:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from LoginData.cpp:3:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
Makefile:55: recipe for target '.obj/LoginData.o' failed
gmake: *** [.obj/LoginData.o] Error 1
In file included from DBManager.h:10,
                 from ClientManager.h:13,
                 from ClientManager.cpp:9:
../../libsql/AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../../libsql/AsyncSQL.h:35: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
../../libsql/AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
../../libsql/AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
../../libsql/AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
../../libsql/AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:98: error: expected ';' before '*' token
../../libsql/AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
../../libsql/AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
../../libsql/AsyncSQL.h: In member function 'void _SQLMsg::Store()':
../../libsql/AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
../../libsql/AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
../../libsql/AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
../../libsql/AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
../../libsql/AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
../../libsql/AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
../../libsql/AsyncSQL.h: At global scope:
../../libsql/AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
../../libsql/AsyncSQL.h:139: error: expected ';' before '*' token
../../libsql/AsyncSQL.h:165: error: 'MYSQL' does not name a type
In file included from ClientManager.cpp:9:
ClientManager.h:244: error: 'MYSQL_RES' has not been declared
ClientManager.h:245: error: 'MYSQL_RES' has not been declared
ClientManager.h:246: error: 'MYSQL_RES' has not been declared
ClientManager.h:247: error: 'MYSQL_RES' has not been declared
ClientManager.h:319: error: 'MYSQL_RES' has not been declared
In file included from ClientManager.cpp:15:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
GuildManager.h: At global scope:
GuildManager.h:202: error: 'MYSQL_RES' has not been declared
ClientManager.cpp:33: error: 'MYSQL_RES' was not declared in this scope
ClientManager.cpp:33: error: 'res' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before '*' token
ClientManager.cpp:33: error: 'pVec' was not declared in this scope
ClientManager.cpp:33: error: expected primary-expression before 'dwPID'
ClientManager.cpp:33: error: initializer expression list treated as compound expression
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:534: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:534: error: expected `;' before 'row'
ClientManager.cpp:537: error: 'row' was not declared in this scope
ClientManager.cpp:545: error: 'row' was not declared in this scope
ClientManager.cpp:550: error: 'row' was not declared in this scope
ClientManager.cpp:604: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:612: error: 'CreateItemTableFromRes' cannot be used as a function
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, SQLMsg*)':
ClientManager.cpp:874: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:874: error: expected `;' before 'row'
ClientManager.cpp:876: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD(CPeer*, SQLMsg*)':
ClientManager.cpp:920: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:920: error: expected `;' before 'row'
ClientManager.cpp:922: error: 'row' was not declared in this scope
ClientManager.cpp:922: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:922: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::RESULT_PRICELIST_LOAD_FOR_UPDATE(SQLMsg*)':
ClientManager.cpp:963: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:963: error: expected `;' before 'row'
ClientManager.cpp:965: error: 'row' was not declared in this scope
ClientManager.cpp:965: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:965: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::QUERY_EMPIRE_SELECT(CPeer*, DWORD, TEmpireSelectPacket*)':
ClientManager.cpp:1012: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:1012: error: expected `;' before 'row'
ClientManager.cpp:1034: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::BlockChat(TPacketBlockChat*)':
ClientManager.cpp:2103: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:2103: error: expected `;' before 'row'
ClientManager.cpp:2104: error: 'row' was not declared in this scope
ClientManager.cpp: In member function 'int CClientManager::AnalyzeQueryResult(SQLMsg*)':
ClientManager.cpp:2838: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp: In member function 'bool CClientManager::InitializeLocalization()':
ClientManager.cpp:3328: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3328: error: expected `;' before 'row'
ClientManager.cpp:3330: error: 'row' was not declared in this scope
ClientManager.cpp:3330: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3330: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
ClientManager.cpp:3724: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3724: error: expected `;' before 'row'
ClientManager.cpp:3727: error: 'row' was not declared in this scope
ClientManager.cpp:3727: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3727: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'bool CClientManager::__GetHostInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
ClientManager.cpp:3778: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:3778: error: expected `;' before 'row'
ClientManager.cpp:3780: error: 'row' was not declared in this scope
ClientManager.cpp:3780: error: 'struct _SQLResult' has no member named 'pSQLResult'
ClientManager.cpp:3780: error: 'mysql_fetch_row' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::ChangeMonarchLord(CPeer*, DWORD, TPacketChangeMonarchLord*)':
ClientManager.cpp:4199: error: 'MYSQL_ROW' was not declared in this scope
ClientManager.cpp:4199: error: expected `;' before 'row'
ClientManager.cpp:4200: error: 'row' was not declared in this scope
Makefile:55: recipe for target '.obj/ClientManager.o' failed
gmake: *** [.obj/ClientManager.o] Error 1
 
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

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

#MYSQL
INCDIR += -I/usr/local/include/mysql
LIBDIR += -L/usr/local/lib/mysql
LIBS += /usr/local/lib/mysql/libmysqlclient.a /usr/lib/libz.a

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


#CXX = distcc i386-obrien-freebsd5-g++
CXX = g++

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

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)
SVN_VERSION = $(shell svnversion -n -c . | cut -d':' -f2)

BIN = ./libsql.a

CFLAGS = $(IFLAGS) -I/usr/local/include/mysql -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions

LIBS =

OBJFILES = AsyncSQL.o Semaphore.o Tellwait.o Statement.o

default:
$(MAKE) $(BIN)

$(BIN): $(OBJFILES)
ar cru $(BIN) $(OBJFILES) $(LIBS)
ranlib $(BIN)
chmod 700 $(BIN)

clean:
rm -f *.o
rm -f $(BIN)

dep:
touch Depend
$(CXX) $(CFLAGS) -MM *.cpp > Depend

$(OBJFILES):
$(CXX) $(CFLAGS) -c $<

sinclude Depend

Bu yeni iki makefile dosyasını kullanın, ana dizinde gmake clean ve gmake all ile tekrar build almayı deneyin muhtemelen çözülecektir.
 
Bu yeni iki makefile dosyasını kullanın, ana dizinde gmake clean ve gmake all ile tekrar build almayı deneyin muhtemelen çözülecektir.
Sanırsam birkaç tane hatadan kurtulduk bu makefileları kullanınca ancak hala mysql dosyalarını bulamıyor bazı yerlerde.

Yeni error :
ERROR:
root@localhost:/home/mainline_released/Srcs/Server # gmake all
Makefile:47: warning: overriding recipe for target 'libserverkey'
Makefile:13: warning: ignoring old recipe for target 'libserverkey'
--------------------------------------
Full Build Start
--------------------------------------
gmake -C liblua clean
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/liblua'
cd include; gmake clean
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/liblua/include                                                                                                                                                             '
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.                                                                                                                                                             o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.                                                                                                                                                             o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/liblua/src/lib                                                                                                                                                             '
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o load                                                                                                                                                             lib.o ../../lib/liblualib.a
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/liblua/src/lib'
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/liblua'
gmake -C liblua
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/liblua'
cd include; gmake all
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/liblua/include                                                                                                                                                             '
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/liblua/include'
cd src; gmake all
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/liblua/src'
gcc -O2 -g -Wall -I../include      -c -o lapi.o lapi.c
gcc -O2 -g -Wall -I../include      -c -o lcode.o lcode.c
gcc -O2 -g -Wall -I../include      -c -o ldebug.o ldebug.c
gcc -O2 -g -Wall -I../include      -c -o ldo.o ldo.c
gcc -O2 -g -Wall -I../include      -c -o ldump.o ldump.c
gcc -O2 -g -Wall -I../include      -c -o lfunc.o lfunc.c
gcc -O2 -g -Wall -I../include      -c -o lgc.o lgc.c
gcc -O2 -g -Wall -I../include      -c -o llex.o llex.c
llex.c: In function 'read_string':
llex.c:285: warning: case label value is less than minimum value for type
gcc -O2 -g -Wall -I../include      -c -o lmem.o lmem.c
gcc -O2 -g -Wall -I../include      -c -o lobject.o lobject.c
gcc -O2 -g -Wall -I../include      -c -o lopcodes.o lopcodes.c
gcc -O2 -g -Wall -I../include      -c -o lparser.o lparser.c
gcc -O2 -g -Wall -I../include      -c -o lstate.o lstate.c
gcc -O2 -g -Wall -I../include      -c -o lstring.o lstring.c
gcc -O2 -g -Wall -I../include      -c -o ltable.o ltable.c
gcc -O2 -g -Wall -I../include      -c -o ltests.o ltests.c
gcc -O2 -g -Wall -I../include      -c -o ltm.o ltm.c
gcc -O2 -g -Wall -I../include      -c -o lundump.o lundump.c
gcc -O2 -g -Wall -I../include      -c -o lvm.o lvm.c
gcc -O2 -g -Wall -I../include      -c -o lzio.o lzio.c
if [ ! -d ../lib ]; then mkdir ; fi
ar rcu ../lib/liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o
ranlib ../lib/liblua.a
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/liblua/src'
cd src/lib; gmake all
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/liblua/src/lib'
gcc -O2 -g -Wall -I../../include         -c -o lauxlib.o lauxlib.c
gcc -O2 -g -Wall -I../../include         -c -o lbaselib.o lbaselib.c
gcc -O2 -g -Wall -I../../include         -c -o ldblib.o ldblib.c
gcc -O2 -g -Wall -I../../include         -c -o liolib.o liolib.c
liolib.c: In function 'g_iofile':
liolib.c:251: warning: value computed is not used
liolib.c: In function 'f_lines':
liolib.c:286: warning: value computed is not used
gcc -O2 -g -Wall -I../../include         -c -o lmathlib.o lmathlib.c
gcc -O2 -g -Wall -I../../include         -c -o ltablib.o ltablib.c
gcc -O2 -g -Wall -I../../include         -c -o lstrlib.o lstrlib.c
gcc -O2 -g -Wall -I../../include         -c -o loadlib.o loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/liblua/src/lib'
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/liblua'
gmake -C libserverkey dep
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/libserverkey'
touch Depend
g++  -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -MM *.cpp > Depend
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/libserverkey'
gmake -C libserverkey clean
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/libserverkey'
rm -f *.o
rm -f ./libserverkey.a
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/libserverkey'
gmake -C libserverkey
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/libserverkey'
gmake ./libserverkey.a
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/libserverkey'
g++  -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c base64_ssl.cpp
g++  -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c RSACrypto.cpp
ar cru ./libserverkey.a base64_ssl.o RSACrypto.o
ranlib ./libserverkey.a
chmod 700 ./libserverkey.a
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/libserverkey'
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/libserverkey'
gmake -C libsql dep
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/libsql'
touch Depend
g++  -I/usr/local/include/mysql -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions -MM *.cpp > Depend
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/libsql'
gmake -C libsql clean
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/libsql'
rm -f *.o
rm -f ./libsql.a
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/libsql'
gmake -C libsql
gmake[1]: Entering directory '/home/mainline_released/Srcs/Server/libsql'
gmake ./libsql.a
gmake[2]: Entering directory '/home/mainline_released/Srcs/Server/libsql'
g++  -I/usr/local/include/mysql -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions -c AsyncSQL.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from AsyncSQL.cpp:8:
AsyncSQL.h:11:25: error: mysql/mysql.h: No such file or directory
AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from AsyncSQL.cpp:8:
AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
AsyncSQL.h:35: error: expected ';' before '*' token
AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
AsyncSQL.h: At global scope:
AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
AsyncSQL.h:98: error: expected ';' before '*' token
AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
AsyncSQL.h: In member function 'void _SQLMsg::Store()':
AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
AsyncSQL.h: At global scope:
AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
AsyncSQL.h:139: error: expected ';' before '*' token
AsyncSQL.h:165: error: 'MYSQL' does not name a type
AsyncSQL.h: In constructor 'CAsyncSQL::CAsyncSQL()':
AsyncSQL.h:201: warning: 'CAsyncSQL::m_iCopiedQuery' will be initialized after
AsyncSQL.h:175: warning:   'int CAsyncSQL::m_iPort'
AsyncSQL.cpp:19: warning:   when initialized here
AsyncSQL.cpp:31: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::Destroy()':
AsyncSQL.cpp:45: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:48: error: 'mysql_close' was not declared in this scope
AsyncSQL.cpp: In member function 'bool CAsyncSQL::QueryLocaleSet()':
AsyncSQL.cpp:104: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:104: error: 'mysql_set_character_set' was not declared in this scope
AsyncSQL.cpp:106: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp:106: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp: In member function 'bool CAsyncSQL::Connect()':
AsyncSQL.cpp:117: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:117: error: 'mysql_init' was not declared in this scope
AsyncSQL.cpp:129: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:129: error: 'MYSQL_SET_CHARSET_NAME' was not declared in this scope
AsyncSQL.cpp:129: error: 'mysql_options' was not declared in this scope
AsyncSQL.cpp:131: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:135: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:135: error: 'CLIENT_MULTI_STATEMENTS' was not declared in this scope
AsyncSQL.cpp:135: error: 'mysql_real_connect' was not declared in this scope
AsyncSQL.cpp:137: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:141: error: 'my_bool' was not declared in this scope
AsyncSQL.cpp:141: error: expected `;' before 'reconnect'
AsyncSQL.cpp:143: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:143: error: 'MYSQL_OPT_RECONNECT' was not declared in this scope
AsyncSQL.cpp:143: error: 'reconnect' was not declared in this scope
AsyncSQL.cpp:143: error: 'mysql_options' was not declared in this scope
AsyncSQL.cpp:144: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:146: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:153: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp: In member function 'SQLMsg* CAsyncSQL::DirectQuery(const char*)':
AsyncSQL.cpp:251: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:251: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp:260: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
AsyncSQL.cpp:260: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:264: error: 'mysql_real_query' was not declared in this scope
AsyncSQL.cpp:270: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:273: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::AsyncQuery(const char*)':
AsyncSQL.cpp:284: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
AsyncSQL.cpp:284: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::ReturnQuery(const char*, void*)':
AsyncSQL.cpp:295: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
AsyncSQL.cpp:295: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::ChildLoop()':
AsyncSQL.cpp:555: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:555: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp:562: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:562: error: 'mysql_real_query' was not declared in this scope
AsyncSQL.cpp:564: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp:566: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:571: error: 'CR_SOCKET_CREATE_ERROR' was not declared in this scope
AsyncSQL.cpp:572: error: 'CR_CONNECTION_ERROR' was not declared in this scope
AsyncSQL.cpp:573: error: 'CR_IPSOCK_ERROR' was not declared in this scope
AsyncSQL.cpp:574: error: 'CR_UNKNOWN_HOST' was not declared in this scope
AsyncSQL.cpp:575: error: 'CR_SERVER_GONE_ERROR' was not declared in this scope
AsyncSQL.cpp:576: error: 'CR_CONN_HOST_ERROR' was not declared in this scope
AsyncSQL.cpp:577: error: 'ER_NOT_KEYFILE' was not declared in this scope
AsyncSQL.cpp:578: error: 'ER_CRASHED_ON_USAGE' was not declared in this scope
AsyncSQL.cpp:579: error: 'ER_CANT_OPEN_FILE' was not declared in this scope
AsyncSQL.cpp:580: error: 'ER_HOST_NOT_PRIVILEGED' was not declared in this scope
AsyncSQL.cpp:581: error: 'ER_HOST_IS_BLOCKED' was not declared in this scope
AsyncSQL.cpp:582: error: 'ER_PASSWORD_NOT_ALLOWED' was not declared in this scope
AsyncSQL.cpp:583: error: 'ER_PASSWORD_NO_MATCH' was not declared in this scope
AsyncSQL.cpp:584: error: 'ER_CANT_CREATE_THREAD' was not declared in this scope
AsyncSQL.cpp:585: error: 'ER_INVALID_USE_OF_NULL' was not declared in this scope
AsyncSQL.cpp:617: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:617: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp:624: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:624: error: 'mysql_real_query' was not declared in this scope
AsyncSQL.cpp:626: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp:628: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:633: error: 'CR_SOCKET_CREATE_ERROR' was not declared in this scope
AsyncSQL.cpp:634: error: 'CR_CONNECTION_ERROR' was not declared in this scope
AsyncSQL.cpp:635: error: 'CR_IPSOCK_ERROR' was not declared in this scope
AsyncSQL.cpp:636: error: 'CR_UNKNOWN_HOST' was not declared in this scope
AsyncSQL.cpp:637: error: 'CR_SERVER_GONE_ERROR' was not declared in this scope
AsyncSQL.cpp:638: error: 'CR_CONN_HOST_ERROR' was not declared in this scope
AsyncSQL.cpp:639: error: 'ER_NOT_KEYFILE' was not declared in this scope
AsyncSQL.cpp:640: error: 'ER_CRASHED_ON_USAGE' was not declared in this scope
AsyncSQL.cpp:641: error: 'ER_CANT_OPEN_FILE' was not declared in this scope
AsyncSQL.cpp:642: error: 'ER_HOST_NOT_PRIVILEGED' was not declared in this scope
AsyncSQL.cpp:643: error: 'ER_HOST_IS_BLOCKED' was not declared in this scope
AsyncSQL.cpp:644: error: 'ER_PASSWORD_NOT_ALLOWED' was not declared in this scope
AsyncSQL.cpp:645: error: 'ER_PASSWORD_NO_MATCH' was not declared in this scope
AsyncSQL.cpp:646: error: 'ER_CANT_CREATE_THREAD' was not declared in this scope
AsyncSQL.cpp:647: error: 'ER_INVALID_USE_OF_NULL' was not declared in this scope
AsyncSQL.cpp: At global scope:
AsyncSQL.cpp:678: error: expected constructor, destructor, or type conversion before '*' token
AsyncSQL.cpp: In member function 'size_t CAsyncSQL::EscapeString(char*, size_t, const char*, size_t)':
AsyncSQL.cpp:708: error: 'GetSQLHandle' was not declared in this scope
AsyncSQL.cpp:708: error: 'mysql_real_escape_string' was not declared in this scope
Makefile:35: recipe for target 'AsyncSQL.o' failed
gmake[2]: *** [AsyncSQL.o] Error 1
gmake[2]: Leaving directory '/home/mainline_released/Srcs/Server/libsql'
Makefile:19: recipe for target 'default' failed
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory '/home/mainline_released/Srcs/Server/libsql'
Makefile:80: recipe for target 'all' failed
gmake: *** [all] Error 2
 
yok kurtulmamışsın yine aynı hata var

Kod:
AsyncSQL.h:11:25: error: mysql/mysql.h: No such file or directory
 
Geri
Üst