[求助]搞不懂的连接错误(附源代码)
小弟是初学者,昨天刚敲完一程序,编译没有错误,运行报错:Linking...
useDatabase.obj : error LNK2001: unresolved external symbol "public: void __thiscall Personal::readKey(void)" (?readKey@Personal@@QAEXXZ)
useDatabase.obj : error LNK2001: unresolved external symbol "public: __thiscall Student::Student(void)" (??0Student@@QAE@XZ)
useDatabase.obj : error LNK2001: unresolved external symbol "public: void __thiscall Student::readFromFile(class fstream &)" (?readFromFile@Student@@QAEXAAVfstream@@@Z)
useDatabase.obj : error LNK2001: unresolved external symbol "public: void __thiscall Student::writeToFile(class fstream &)const " (?writeToFile@Student@@QBEXAAVfstream@@@Z)
useDatabase.obj : error LNK2001: unresolved external symbol "protected: class ostream & __thiscall Student::writeLegibly(class ostream &)" (?writeLegibly@Student@@IAEAAVostream@@AAV2@@Z)
useDatabase.obj : error LNK2001: unresolved external symbol "protected: class istream & __thiscall Student::readFromConsole(class istream &)" (?readFromConsole@Student@@IAEAAVistream@@AAV2@@Z)
Debug/useDatabase.exe : fatal error LNK1120: 6 unresolved externals
执行 link.exe 时出错.
baidu了n次还是不明白,望高人指点。