Monday, July 30, 2018

c++ - unresolved external symbol structs

error LNK2001: unresolved external symbol "public: static int WrappedVector::_N" (?_N@WrappedVector@@2HA)



header.h



struct WrappedVector
{
static int _N;

double *_x;
};


main.cpp



const int WrappedVector::_N = 3;


i don't understand whats wrong

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...