error LNK2001: unresolved external symbol public: static class [duplicate]
问题 This question already has answers here : What is an undefined reference/unresolved external symbol error and how do I fix it? (32 answers) Closed 5 years ago . I cannot figure out why i am recieving this error. Can anyone lend a hand. I need to declare VideoCapture capture in the header file and call it in Video.cpp Video.h class Video { public: static VideoCapture capture; //Default constructor Video(); //Declare a virtual destructor: virtual ~Video(); //Method void Start(); private: };