解决方法一:把你写在main(主函数)里的类的头文件改成.cpp
解决方法二:写在头文件下面,cpp中不需要写东西,(不分离)
解决方法三:在cpp文件下写 template class XXX<类型>
因为泛型不能在cpp中实现。
例如:类模板问题: 错误	LNK2019	无法解析的外部符号 "public: __thiscall XXX::~XXX

相关文章:

  • 2021-09-10
  • 2021-11-18
  • 2021-05-31
  • 2021-05-23
  • 2021-07-13
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2021-11-22
  • 2021-10-13
相关资源
相似解决方案