Hi, i am doing a multiple-file project and i come across a difficult obstacles. I want your help, DaniWeb readers on this problem, which i find very strange:
#include "stdafx.h"//i have included vector header here
#include "globals.h"
#include "functions.h"
using namespace std;
#ifndef CPIECE
#define CPIECE
class CPiece
{
//stuff...
public:
vector<vector<int>> piece;
CPiece() :piece(4,vector<int>(2))
{
//more stuff...
}
Bad news is, it does not compile. It gives me this error:
Error 32 error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: class std::vector<int,class std::allocator<int> > & __thiscall std::vector<class std::vector<int,class std::allocator<int> >,class std::allocator<class std::vector<int,class std::allocator<int> > > >::operator[](unsigned int)" (??A?$vector@V?$vector@HV?$allocator@H@std@@@std@@V?$allocator@V?$vector@HV?$allocator@H@std@@@std@@@2@@std@@QAEAAV?$vector@HV?$allocator@H@std@@@1@I@Z)