c++错误,求解答
Error 2 error LNK2005: "class std::vector<struct _POS,class std::allocator<struct _POS> > vIndex" (?vIndex@@3V?$vector@U_POS@@V?$allocator@U_POS@@@std@@@std@@A) already defined in Block.obj Function.obj HikParse
找不到到底错在哪里代码太多只粘最主要的部分吧
vector<struct _POS> vIndex;
typedef struct _POS
{
int iGroupRank;
int iGroupOffset;
int iBlockRank;
int iFrameOffset;
}POS;
这是一个结构体向量,不知道到底错在了哪里