Cruel 4 Posted February 14, 2015 Share Posted February 14, 2015 Hi guys, does someone have mainline_released DB? without bugs... or compile errors, just warnings? Link to comment Share on other sites More sharing options...
Ira™ 41 Posted February 14, 2015 Share Posted February 14, 2015 Hi guys, does someone have mainline_released DB? without bugs... or compile errors, just warnings? Gone are not obliged to work for you. We are here to help, post questions not know them and try to help. Applications do not come here if you need someone to work for you ,pay someone. Roman fool again embarrass myself. Try by yourself wondering if you fail. You do not come to ask for everything on the tray, do not work for anyone. You are not able? Link to comment Share on other sites More sharing options...
Cruel 4 Posted February 14, 2015 Author Share Posted February 14, 2015 I just asked if someone want to give me that src, if you are work just for money, its your choice. Need just working db, no more, want to make some systems what i'l share here.... Or give me solution for g++ on mainline db.... I know that i need working makefile in depend, but where to find? Link to comment Share on other sites More sharing options...
Ira™ 41 Posted February 14, 2015 Share Posted February 14, 2015 I just asked if someone want to give me that src, if you are work just for money, its your choice. Need just working db, no more, want to make some systems what i'l share here.... So post the erors when compiling, what's so hard ? And if anyone knows, you help? Link to comment Share on other sites More sharing options...
Cruel 4 Posted February 14, 2015 Author Share Posted February 14, 2015 root@:/usr/src/mainline_released/mainline_sg/Srcs/Server/db/src # gmake compile Config.cpp compile NetBase.cpp compile Peer.cpp compile PeerBase.cpp compile Main.cpp compile Lock.cpp compile DBManager.cpp compile Cache.cpp Cache.cpp:365:7: warning: no newline at end of file compile LoginData.cpp compile ClientManager.cpp In file included from ClientManager.cpp:6: ../../common/VnumHelper.h:59:32: warning: no newline at end of file compile ClientManagerPlayer.cpp ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)': ClientManagerPlayer.cpp:433: warning: address of local variable 'command' returned compile ClientManagerLogin.cpp compile ClientManagerBoot.cpp In file included from ClientManagerBoot.cpp:8: ProtoReader.h:36:7: warning: no newline at end of file ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTableSQL()': ClientManagerBoot.cpp:237: error: 'FCompareVnum' was not declared in this scope ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTableSQL()': ClientManagerBoot.cpp:339: error: 'FCompareVnum' was not declared in this scope ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTableTXT()': ClientManagerBoot.cpp:643: warning: statement has no effect ClientManagerBoot.cpp: At global scope: ClientManagerBoot.cpp:813: error: no 'bool CClientManager::InitializeItemTable()' member function declared in class 'CClientManager' ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()': ClientManagerBoot.cpp:944: warning: unused variable 'testValue' ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()': gmake: *** [.obj/ClientManagerBoot.o] Error 1 There's a lot of errors, and dont have a backup... to try again. Link to comment Share on other sites More sharing options...
Ken 905 Posted February 14, 2015 Share Posted February 14, 2015 (edited) ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTableSQL()': ClientManagerBoot.cpp:237: error: 'FCompareVnum' was not declared in this scope ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTableSQL()': ClientManagerBoot.cpp:339: error: 'FCompareVnum' was not declared in this scope ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTableTXT()': ClientManagerBoot.cpp: At global scope: ClientManagerBoot.cpp:813: error: no 'bool CClientManager::InitializeItemTable()' member function declared in class 'CClientManager' These functions are not declared (defined) in header file. You should define that. Kind Regards Ken ~ TA Edited February 14, 2015 by Ken Do not be sorry, be better. Link to comment Share on other sites More sharing options...
pbuzz 31 Posted February 14, 2015 Share Posted February 14, 2015 (edited) as i see, you were trying to make it to load item/mob_proto from database, reread that tutorial because you forgot to declare some functions like: "bool CClientManager::InitializeItemTable()" ps. sry @Ken, i didn't hit refresh before post this and now it looks like spam Edited February 14, 2015 by pbuzz Link to comment Share on other sites More sharing options...
Cruel 4 Posted February 14, 2015 Author Share Posted February 14, 2015 Thank, lets try. Link to comment Share on other sites More sharing options...
Cruel 4 Posted February 14, 2015 Author Share Posted February 14, 2015 g++: directory": No such file or directory <command-line>: warning: missing terminating " character version.cpp:22:2: warning: no newline at end of file gmake: *** [.obj/version.o] Error 1 someone have a working makefile? Link to comment Share on other sites More sharing options...
Ira™ 41 Posted February 14, 2015 Share Posted February 14, 2015 Open makefile and replace this: P4_VERSION = $(shell svnversion -n .) REPLACE WITH : P4_VERSION = x_version Link to comment Share on other sites More sharing options...
Cruel 4 Posted February 14, 2015 Author Share Posted February 14, 2015 Repaired 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 = compiled $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi) TARGET = $(BINDIR)/db_r$(P4_VERSION) CFLAGS = -g -Wall -O2 -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE ifeq ($(GCC_VERSION), 4) CFLAGS += -mtune=i686 else CFLAGS += -mcpu=i686 endif # boost INCDIR += -I../../boost LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib ifeq ($(BSD_VERSION), 7) INCDIR += -I../../libmysql/7.x-5.1.35 LIBDIR += -L../../libmysql/7.x-5.1.35 else INCDIR += -I../../libmysql/5.x-5.1.35 LIBDIR += -L../../libmysql/5.x-5.1.35 endif LIBS = -lthecore -lmysqlclient -L/usr/local/lib/mysql -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__P4_VERSION__="$(SVN_VERSION)" -c $< -o $@ @echo compile $< $(OBJDIR): @mkdir $(OBJDIR) clean: @rm -f $(OBJS) $(BINDIR)/db_* 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 change LIBS too Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now