当前位置: 代码迷 >> Windows Mobile >> vs2005调试mobile项目时出现的有关问题~
  详细解决方案

vs2005调试mobile项目时出现的有关问题~

热度:111   发布时间:2016-04-25 07:51:24.0
vs2005调试mobile项目时出现的问题~~急
出现如下错误:

正在编译资源...
正在链接...
StudentPaper.obj : error LNK2019: 无法解析的外部符号 "public: int __cdecl CDBEngine::AddQuestionIdToTempTalbe(class CDigiRecordSet *)const " (?AddQuestionIdToTempTalbe@CDBEngine@@QBAHPAVCDigiRecordSet@@@Z),该符号在函数 "public: int __cdecl CStudentPaper::CreatePaper(void)" (?CreatePaper@CStudentPaper@@QAAHXZ) 中被引用
StudentPaper.obj : error LNK2019: 无法解析的外部符号 "public: class CDigiRecordSet * __cdecl CDBEngine::GetRequireQuestions(int,int,enum TestType)" (?GetRequireQuestions@CDBEngine@@QAAPAVCDigiRecordSet@@HHW4TestType@@@Z),该符号在函数 "public: int __cdecl CStudentPaper::CreatePaper(void)" (?CreatePaper@CStudentPaper@@QAAHXZ) 中被引用
StudentPaper.obj : error LNK2019: 无法解析的外部符号 "public: int __cdecl CDBEngine::UpdateAlDidQuestion(class CQuestions *)" (?UpdateAlDidQuestion@CDBEngine@@QAAHPAVCQuestions@@@Z),该符号在函数 "public: int __cdecl CStudentPaper::UpdateDidQuestionAttribute(void)" (?UpdateDidQuestionAttribute@CStudentPaper@@QAAHXZ) 中被引用
StudentTest.obj : error LNK2019: 无法解析的外部符号 "public: int __cdecl CDBEngine::UpdateKnowledgeRemainQNum(int)" (?UpdateKnowledgeRemainQNum@CDBEngine@@QAAHH@Z),该符号在函数 "public: int __cdecl CStudentTest::Begin(void)" (?Begin@CStudentTest@@QAAHXZ) 中被引用
Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug\StudentStudy.exe : fatal error LNK1120: 4 个无法解析的外部命令
生成日志保存在“file://f:\mobile\mobile_随身课表_最终版\mobile_随身课表_最终版\LearnCenter\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug\BuildLog.htm”
StudentStudy - 5 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========


------解决方案--------------------
CDBEngine这个cpp或者lib没有link进来吧
------解决方案--------------------
StudentPaper Lib库或者头文件,没有被引用进来。
------解决方案--------------------
只在.h文件中声明了,没有路径链接到对应的cpp文件
或者只包含了.lib文件,而没有包含对应的.dll文件
  相关解决方案