I keep getting errors when i try and use the vector class I have an object
vector<CSquare*>m_OldSquare;
however when i try and add elements to the list
CSquare** tempArray = m_FocusBlock->GetSquares();
for(int i=0; i<4; i++)
{
m_OldSquares.push_back(tempArray[i]);
}
I get this error
unresolved external symbol __imp___CrtDbgReportW referenced in function "public: __thiscall std::_Vector_const_iterator<class CSquare *,class std::allocator<class CSquare *> >::_Vector_const_iterator<class CSquare *,class std::allocator<class CSquare *> >(class CSquare * *,class std::_Container_base const *)" (??0?$_Vector_const_iterator@PAVCSquare@@V?$allocator@PAVCSquare
@@@std@@@std@@QAE@PAPAVCSquare@@PBV_Container_base@1@@Z)
1>C:\\SDLBlox\Debug\SDLBlox.exe : fatal error LNK1120: 1 unresolved externals
also when i want to delete all elements in the list on exit
for(int i=0;i<m_OldSquares.size(); i++)
delete m_OldSquares[i];
I get similar errors.
I don't really know what i'm doing wrong any help would be greatly appreciated