求助:error LNK2001: 无法解析的外部符号 __imp__toc

nyalathotep 2011-09-27 10:11:10
如题
遇到这个问题不知道怎么办了拜托各位大哥大姐指点一下
下面是具体报错:
错误 1 error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall CFaceMngr::~CFaceMngr(void)" (__imp_??1CFaceMngr@@QAE@XZ) algotest.obj algotest
错误 2 error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall CFaceMngr::CFaceMngr(void)" (__imp_??0CFaceMngr@@QAE@XZ) algotest.obj algotest
错误 3 error LNK2001: 无法解析的外部符号 __imp__toc orl.obj algotest
错误 4 error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: double __thiscall CFaceMngr::BatchPicRecog(char const *,class std::vector<struct SFInfo,class std::allocator<struct SFInfo> > &,class std::vector<struct SMatch,class std::allocator<struct SMatch> > &,unsigned long)" (__imp_?BatchPicRecog@CFaceMngr@@QAENPBDAAV?$vector@USFInfo@@V?$allocator@USFInfo@@@std@@@std@@AAV?$vector@USMatch@@V?$allocator@USMatch@@@std@@@3@K@Z) orl.obj algotest
错误 5 error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall CFaceMngr::Train(char const *,class std::vector<struct SFInfo,class std::allocator<struct SFInfo> > &,unsigned long)" (__imp_?Train@CFaceMngr@@QAE_NPBDAAV?$vector@USFInfo@@V?$allocator@USFInfo@@@std@@@std@@K@Z) orl.obj algotest
错误 6 error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall C错误 7 error LNK2001: 无法解析的外部符号 __imp__tic orl.obj algotest
FaceMngr::Init(struct CvSize)" (__imp_?Init@CFaceMngr@@QAE_NUCvSize@@@Z) orl.obj algotest
错误 8 fatal error LNK1120: 7 个无法解析的外部命令 E:\pky\FaceRecognize\exe\algotest.exe algotest


拜托了!!!!!!!!!!!
...全文
283 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
gameslq 2011-09-27
  • 打赏
  • 举报
回复
去这里下载个新版本
http://code.google.com/p/facerecog/
可执行文件、开发文档都有。
sdl2005lyx 2011-09-27
  • 打赏
  • 举报
回复
这种问题,一般是没事实现函数,你如果你确认实现了,那多半是没有在工程加入那个cpp文件。。。
向立天 2011-09-27
  • 打赏
  • 举报
回复
一般遇到这种问题就重新编译
nyalathotep 2011-09-27
  • 打赏
  • 举报
回复
感谢各位前辈了
莫名其妙的就好了
嘿嘿嘿
nyalathotep 2011-09-27
  • 打赏
  • 举报
回复
函数确实有实现
而且之前也编译通过了一次,但是也只有那一次之后就一直是这个问题
yyps 2011-09-27
  • 打赏
  • 举报
回复
error LNK2001 包含的错误类型还是很多的,我觉得可能是函数只定义了,没有实现体!或者缺少库,你想想是不是需要什么 XX.DLL 而没有在 setting-》LINK 里面加入 XX.lib,还有种情况是你乱删东西删的。。。
quwei197874 2011-09-27
  • 打赏
  • 举报
回复
或者是某个库没引用到,楼主看是否正确加载了那个库
我才是心翼 2011-09-27
  • 打赏
  • 举报
回复
莫非是某个函数只定义了没有实现?

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧