主题:VC6.0总是提示lnk错误,困扰几天了,真心麻烦大家帮帮忙
用VC6.0建立工程实现类的接口与实现分离的时候第一次可以正常运行,但是后来在运行测试文件的时候总是提示lnk错误,提示如下:
--------------------Configuration: 3_13 - Win32 Debug--------------------
Linking...
3_13.obj : error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall GradeBook::getCourseName(void)" (?getCourseName@GradeBook@@QAE?AV?$basic_string@DU?$char
_traits@D@std@@V?$allocator@D@2@@std@@XZ)
3_13.obj : error LNK2001: unresolved external symbol "public: __thiscall GradeBook::GradeBook(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0GradeBook@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allo
cator@D@2@@std@@@Z)
Debug/3_13.exe : fatal error LNK1120: 2 unresolved externals
执行 link.exe 时出错.
3_13.exe - 1 error(s), 0 warning(s)