Jump to content

Error When Compiling


Recommended Posts

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.