Monday 30 July 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...