Unresolved external symbol generally means you've not linked to the right library, or you haven't written a function you need.
The following code is fine. Can you build it?
#include <vector>
#include <iostream>
using namespace std;
class CPiece
{
public:
vector<vector<int> > piece;
CPiece() :piece(4,vector<int>(2))
{}
};
int main()
{
CPiece eggs;
cout << eggs.piece.size();
}
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117
Which compiler are you using?
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117