easyx 1 Posted December 14, 2019 Share Posted December 14, 2019 Every time i try to compile i get this error any one know what could be causing it?? gmake: *** [Makefile:128: OBJDIR/char_skill.o] Error 1 Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted December 14, 2019 Premium Share Posted December 14, 2019 #gmake clean -j4 #gmake -j4 1 Link to comment Share on other sites More sharing options...
easyx 1 Posted December 15, 2019 Author Share Posted December 15, 2019 Spoiler root@test:~/workspace/Server/game/src # gmake clean -j4 root@test:~/workspace/Server/game/src # gmake -j4 Compile: BattleArena.cpp Compile: FSM.cpp Compile: MarkConvert.cpp Compile: MarkImage.cpp Compile: MarkManager.cpp Compile: OXEvent.cpp Compile: TrafficProfiler.cpp Compile: ani.cpp In file included from /usr/local/include/boost/predef/os/bsd/free.h:37, from /usr/local/include/boost/predef/os/bsd.h:96, from /usr/local/include/boost/predef/os/bsd/dragonfly.h:11, from /usr/local/include/boost/predef/os/bsd.h:95, from /usr/local/include/boost/predef/os/bsd/bsdi.h:11, from /usr/local/include/boost/predef/os/bsd.h:52, from /usr/local/include/boost/predef/os.h:17, from /usr/local/include/boost/predef.h:17, from /usr/local/include/boost/unordered/detail/fwd.hpp:14, from /usr/local/include/boost/unordered/detail/implementation.hpp:44, from /usr/local/include/boost/unordered/detail/map.hpp:6, from /usr/local/include/boost/unordered/unordered_map.hpp:21, from /usr/local/include/boost/unordered_map.hpp:17, from questmanager.h:4, from OXEvent.cpp:4: ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ Compile: arena.cpp In file included from /usr/local/include/boost/predef/os/bsd/free.h:37, from /usr/local/include/boost/predef/os/bsd.h:96, from /usr/local/include/boost/predef/os/bsd/dragonfly.h:11, from /usr/local/include/boost/predef/os/bsd.h:95, from /usr/local/include/boost/predef/os/bsd/bsdi.h:11, from /usr/local/include/boost/predef/os/bsd.h:52, from /usr/local/include/boost/predef/os.h:17, from /usr/local/include/boost/predef.h:17, from /usr/local/include/boost/unordered/detail/fwd.hpp:14, from /usr/local/include/boost/unordered/detail/implementation.hpp:44, from /usr/local/include/boost/unordered/detail/map.hpp:6, from /usr/local/include/boost/unordered/unordered_map.hpp:21, from /usr/local/include/boost/unordered_map.hpp:17, from char.h:4, from ani.cpp:11: ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ Compile: banword.cpp gmake: *** [Makefile:128: OBJDIR/ani.o] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [Makefile:128: OBJDIR/OXEvent.o] Error 1 In file included from /usr/local/include/boost/predef/os/bsd/free.h:37, from /usr/local/include/boost/predef/os/bsd.h:96, from /usr/local/include/boost/predef/os/bsd/dragonfly.h:11, from /usr/local/include/boost/predef/os/bsd.h:95, from /usr/local/include/boost/predef/os/bsd/bsdi.h:11, from /usr/local/include/boost/predef/os/bsd.h:52, from /usr/local/include/boost/predef/os.h:17, from /usr/local/include/boost/predef.h:17, from /usr/local/include/boost/unordered/detail/fwd.hpp:14, from /usr/local/include/boost/unordered/detail/implementation.hpp:44, from /usr/local/include/boost/unordered/detail/map.hpp:6, from /usr/local/include/boost/unordered/unordered_map.hpp:21, from /usr/local/include/boost/unordered_map.hpp:17, from questmanager.h:4, from arena.cpp:8: ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:99:32: error: expected ')' before 'a' 99 | template <typename T> T MIN(T a, T b) | ^ ../../common/stl.h:99:26: note: to match this '(' 99 | template <typename T> T MIN(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ ../../common/stl.h:104:32: error: expected ')' before 'a' 104 | template <typename T> T MAX(T a, T b) | ^ ../../common/stl.h:104:26: note: to match this '(' 104 | template <typename T> T MAX(T a, T b) | ^~~ gmake: *** [Makefile:128: OBJDIR/arena.o] Error 1 root@test:~/workspace/Server/game/src # Now i get this Link to comment Share on other sites More sharing options...
Premium Jira 472 Posted December 15, 2019 Premium Share Posted December 15, 2019 (edited) @easyx add in stl.h #ifdef MIN #undef MIN #endif #ifdef MAX #undef MAX #endif Spoiler Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
easyx 1 Posted December 16, 2019 Author Share Posted December 16, 2019 Hey thanks for the anwser i changed the gcc version from 49 to 42 and it worked somehow 1 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