error LNK2001 无法解析的外部符号 “public virtual void __thiscall
仅提供中文版本
今天创建了一个工厂模式,中间定义了两个继承函数,但是在主函数中我没有写内容,直接在继承函数中写的算法,结果报错error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall ,各种搜索引擎也没有解决错误,最后觉得应该是父函数中函数未定义造成的错误,加上函数定义之后解决问题。
这个是很低级的错误,估计只有像我这种直接c++写代码的才会出现的错误,记录一下当做提醒,防止以后再犯相同的错误。
code:
1 | library.h |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.

