Error C2011 Please Help!
#include "defineHonor.h"
typedef struct HonorData
{
int nID; // 인덱스
int nLGrouping; // 대분류
int nSGrouping; // 소분류
int nNeed; // 타이틀 획득 조건
int nValue; // 현재 수치
CString strTitle; // 타이틀명
HonorData() {Init();};
~HonorData() {};
void Init() {nID = -1;nLGrouping = nSGrouping = nNeed = nValue = 0; strTitle.Empty(); };
}PHonorData, *PPHonorData;
#ifdef __CLIENT
struct EarnedTitle
{
int nId;
CString strTitle;
};
#endif // __CLIENT
class CTitleManager
{
private:
map<int, HonorData> m_mapMonster;
map<int, HonorData> m_mapItem;
map<int, HonorData> m_mapEtc;
map<int, HonorData> m_mapAll;
Have this error:
\_Common\honor.h(13) : error C2011: 'HonorData' : 'struct' type redefinition
\_Common\honor.h(13) : see declaration of 'HonorData'
\_Common\honor.h(27) : error C2011: 'EarnedTitle' : 'struct' type redefinition
\_Common\honor.h(27) : see declaration of 'EarnedTitle'
\_Common\honor.h(34) : error C2011: 'CTitleManager' : 'class' type redefinition
\_Common\honor.h(34) : see declaration of 'CTitleManager'
|