首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
vectorclass专题
error LNK2001: 无法解析的外部符号 public: static class std::vectorclass......
vector类型作为class的static成员,需要在class外 define。 如: class MyClass {private:static std::vector<float> myObjectCache;public:static void UpdateCache ();};需要在类外std::vector<float> MyClass::myObjectCache;
阅读更多...