dzdev 42 Posted December 11, 2015 Share Posted December 11, 2015 hello today i've install mainline on myserver i've install all requirements when i try to compile it say this Spoiler compile panama.cpp compile DragonLair.cpp compile threeway_war.cpp compile BlueDragon.cpp compile BlueDragon_Binder.cpp compile auth_brazil.cpp compile questlua_dragonlair.cpp compile HackShield.cpp g++: directory": No such file or directory compile map_location.cpp <command-line>: warning: missing terminating " character version.cpp:10: error: missing terminating " character version.cpp: In function 'void WriteVersion()': version.cpp:10: error: expected primary-expression before ')' token Makefile:127: recipe for target 'OBJDIR/version.o' failed gmake: *** [OBJDIR/version.o] Error 1 gmake: *** Waiting for unfinished jobs.... ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]': ../../../Extern/include/cryptopp/cryptlib.h:277: instantiated from here ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]': ../../../Extern/include/cryptopp/cryptlib.h:283: instantiated from here ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]': ../../../Extern/include/cryptopp/cryptlib.h:277: instantiated from here ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]': ../../../Extern/include/cryptopp/cryptlib.h:283: instantiated from here ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]': ../../../Extern/include/cryptopp/cryptlib.h:277: instantiated from here ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]': ../../../Extern/include/cryptopp/cryptlib.h:283: instantiated from here ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules root@mt2fear:/usr/src/mainline/Srcs/Server/game/src # i need help Link to comment Share on other sites More sharing options...
NewWars 33 Posted December 11, 2015 Share Posted December 11, 2015 <command-line>: warning: missing terminating " characterversion.cpp:10: error: missing terminating " characterversion.cpp: In function 'void WriteVersion()':version.cpp:10: error: expected primary-expression before ')' token Its obvious to resolve, just read the error 1 Link to comment Share on other sites More sharing options...
dzdev 42 Posted December 11, 2015 Author Share Posted December 11, 2015 i can't know the solution can you give it to me? Link to comment Share on other sites More sharing options...
NewWars 33 Posted December 11, 2015 Share Posted December 11, 2015 Post version.cpp line 8 to 11 here Link to comment Share on other sites More sharing options...
dzdev 42 Posted December 11, 2015 Author Share Posted December 11, 2015 if (fp) { fprintf(fp, "40250\n"); fprintf(fp, "%s@%s:%s\n", __USER__, __HOSTNAME__, __PWD__); resloved now i have this linking ../game_r40250_.... /usr/bin/ld: cannot find -lcryptopp Makefile:135: recipe for target '../game_r40250_' failed gmake: *** [../game_r40250_] Error 1 Link to comment Share on other sites More sharing options...
NewWars 33 Posted December 11, 2015 Share Posted December 11, 2015 replace with: if (fp) { fprintf(fp, "game perforce revision: 40250\n"); Or whatever string you wanna put there 1 Link to comment Share on other sites More sharing options...
dzdev 42 Posted December 11, 2015 Author Share Posted December 11, 2015 now i have this linking ../game_r40250_.... /usr/bin/ld: cannot find -lcryptopp Makefile:135: recipe for target '../game_r40250_' failed gmake: *** [../game_r40250_] Error 1 Link to comment Share on other sites More sharing options...
NewWars 33 Posted December 11, 2015 Share Posted December 11, 2015 verify if you have extern libs added like this: # Miscellaneous external libraries INCDIR += -I../../../Extern/include LIBDIR += -L../../../Extern/lib LIBS += -lcryptopp -lgtest 1 Link to comment Share on other sites More sharing options...
dzdev 42 Posted December 11, 2015 Author Share Posted December 11, 2015 <command-line>: warning: missing terminating " character Makefile:127: recipe for target 'OBJDIR/version.o' failed gmake: *** [OBJDIR/version.o] Error 1 gmake: *** Waiting for unfinished jobs.... now i'm having this 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