Cod: Selectaţi tot
DragonLair.cpp -o debug/DragonLair.o
In file included from DragonLair.cpp:4:
In file included from ./DragonLair.h:4:
./../../stl.h:96:32: error: expected ')'
template <typename T> T MIN(T a, T b)
^
./../../stl.h:96:26: note: to match this '('
template <typename T> T MIN(T a, T b)
^
/usr/include/sys/param.h:303:20: note: expanded from macro 'MIN'
#define MIN(a,b) (((a)<(b))?(a):(b))
^
In file included from DragonLair.cpp:4:
In file included from ./DragonLair.h:4:
./../../stl.h:96:26: error: expected ')'
template <typename T> T MIN(T a, T b)
^
/usr/include/sys/param.h:303:23: note: expanded from macro 'MIN'
#define MIN(a,b) (((a)<(b))?(a):(b))
^
./../../stl.h:96:26: note: to match this '('
/usr/include/sys/param.h:303:19: note: expanded from macro 'MIN'
#define MIN(a,b) (((a)<(b))?(a):(b))
^
In file included from DragonLair.cpp:4:
In file included from ./DragonLair.h:4:
./../../stl.h:96:26: error: expected ')'
template <typename T> T MIN(T a, T b)
^
/usr/include/sys/param.h:303:28: note: expanded from macro 'MIN'
#define MIN(a,b) (((a)<(b))?(a):(b))
^
./../../stl.h:96:26: note: to match this '('
/usr/include/sys/param.h:303:18: note: expanded from macro 'MIN'
#define MIN(a,b) (((a)<(b))?(a):(b))
^
In file included from DragonLair.cpp:4:
In file included from ./DragonLair.h:4:
./../../stl.h:98:3: error: expected expression
return a < b ? a : b;
^
./../../stl.h:99:3: error: expected ';' at end of declaration
}
^
;
./../../stl.h:101:32: error: expected ')'
template <typename T> T MAX(T a, T b)
^
./../../stl.h:101:26: note: to match this '('
template <typename T> T MAX(T a, T b)
^
/usr/include/sys/param.h:304:20: note: expanded from macro 'MAX'
#define MAX(a,b) (((a)>(b))?(a):(b))
^
In file included from DragonLair.cpp:4:
In file included from ./DragonLair.h:4:
./../../stl.h:101:26: error: expected ')'
template <typename T> T MAX(T a, T b)
^
/usr/include/sys/param.h:304:23: note: expanded from macro 'MAX'
#define MAX(a,b) (((a)>(b))?(a):(b))
^
./../../stl.h:101:26: note: to match this '('
/usr/include/sys/param.h:304:19: note: expanded from macro 'MAX'
#define MAX(a,b) (((a)>(b))?(a):(b))
^
In file included from DragonLair.cpp:4:
In file included from ./DragonLair.h:4:
./../../stl.h:101:26: error: expected ')'
template <typename T> T MAX(T a, T b)
^
/usr/include/sys/param.h:304:28: note: expanded from macro 'MAX'
#define MAX(a,b) (((a)>(b))?(a):(b))
^
./../../stl.h:101:26: note: to match this '('
/usr/include/sys/param.h:304:18: note: expanded from macro 'MAX'
#define MAX(a,b) (((a)>(b))?(a):(b))
^
In file included from DragonLair.cpp:4:
In file included from ./DragonLair.h:4:
./../../stl.h:101:30: error: redefinition of 'T'
template <typename T> T MAX(T a, T b)
^
./../../stl.h:96:30: note: previous definition is here
template <typename T> T MIN(T a, T b)
^
./../../stl.h:103:3: error: expected expression
return a > b ? a : b;
^
./../../stl.h:104:3: error: expected ';' at end of declaration
}
^
;
11 errors generated.
gmake: *** [Makefile:77: debug/DragonLair.o] Error 1
*Resursă folosită:http://just4metin.ro/serverfiles/server ... 67522.html
*ServerFiles utilizat: http://just4metin.ro/serverfiles/server ... 67522.html
*Syserr:-
Poză:
*Detalii suplimentare:
DragonLair.h :
Cod: Selectaţi tot
#include <boost/unordered_map.hpp>
#include "../../stl.h"
class CDragonLair
{
public:
CDragonLair (DWORD dwGuildID, long BaseMapID, long PrivateMapID);
virtual ~CDragonLair ();
DWORD GetEstimatedTime () const;
void OnDragonDead (LPCHARACTER pDragon);
private:
DWORD StartTime_;
DWORD GuildID_;
};
class CDragonLairManager : public singleton<CDragonLairManager>
{
public:
CDragonLairManager ();
virtual ~CDragonLairManager ();
bool Start (long MapIndexFrom, long BaseMapIndex, DWORD GuildID);
void OnDragonDead (LPCHARACTER pDragon, DWORD KillerGuildID);
size_t GetLairCount () const { return LairMap_.size(); }
private:
boost::unordered_map<DWORD, CDragonLair*> LairMap_;
};






