Link 类是一个抽象类,SeqList 继承了Link类.它们都是模板类;
在编译的时候出现了下面的错误,请高手指教.
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall SeqList<char>::ClearList(void)" (?ClearList@?$SeqList@D@@UAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall SeqList<char>::Delete(char const &)" (?Delete@?$SeqList@D@@UAEXABD@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall SeqList<char>::Insert(char const &)" (?Insert@?$SeqList@D@@UAEXABD@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SeqList<char>::Find(char &)" (?Find@?$SeqList@D@@UAEHAAD@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall List<char>::ListEmpty(void)const " (?ListEmpty@?$List@D@@UBEHXZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall List<char>::ListSize(void)const " (?ListSize@?$List@D@@UBEHXZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall List<char>::List<char>(void)" (??0?$List@D@@QAE@XZ)
Debug/List.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.
List.exe - 8 error(s), 0 warning(s)