2 huangkang66 huangkang66 于 2016.03.17 17:48 提问

请问这是什么原因造成的错误,新手c++,在做一个图像处理的工程,求教

1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CDlgHuffman::~CDlgHuffman(void)" (??1CDlgHuffman@@UAE@XZ) referenced in function "public: void __thiscall CDIPDemoView::OnHuffman(void)" (?OnHuffman@CDIPDemoView@@QAEXXZ)

1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: __thiscall CDlgHuffman::CDlgHuffman(class CWnd *)" (??0CDlgHuffman@@QAE@PAVCWnd@@@Z) referenced in function "public: void __thiscall CDIPDemoView::OnHuffman(void)" (?OnHuffman@CDIPDemoView@@QAEXXZ)
1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CDlgDCT::~CDlgDCT(void)" (??1CDlgDCT@@UAE@XZ) referenced in function "public: void __thiscall CDIPDemoView::OnMenuDct(void)" (?OnMenuDct@CDIPDemoView@@QAEXXZ)

1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: __thiscall CDlgDCT::CDlgDCT(class CWnd *)" (??0CDlgDCT@@QAE@PAVCWnd@@@Z) referenced in function "public: void __thiscall CDIPDemoView::OnMenuDct(void)" (?OnMenuDct@CDIPDemoView@@QAEXXZ)

1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CDlgArith::~CDlgArith(void)" (??1CDlgArith@@UAE@XZ) referenced in function "public: void __thiscall CDIPDemoView::OnMuneArith(void)" (?OnMuneArith@CDIPDemoView@@QAEXXZ)

1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: __thiscall CDlgArith::CDlgArith(class CWnd *)" (??0CDlgArith@@QAE@PAVCWnd@@@Z) referenced in function "public: void __thiscall CDIPDemoView::OnMuneArith(void)" (?OnMuneArith@CDIPDemoView@@QAEXXZ)

1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CDlgInvFilter::~CDlgInvFilter(void)" (??1CDlgInvFilter@@UAE@XZ) referenced in function "public: void __thiscall CDIPDemoView::OnInvRestore(void)" (?OnInvRestore@CDIPDemoView@@QAEXXZ)

1>DIPDemoView.obj : error LNK2019: unresolved external symbol "public: __thiscall CDlgInvFilter::CDlgInvFilter(class CWnd *)" (??0CDlgInvFilter@@QAE@PAVCWnd@@@Z) referenced in function "public: void __thiscall CDIPDemoView::OnInvRestore(void)" (?OnInvRestore@CDIPDemoView@@QAEXXZ)

2个回答

caozhy
caozhy   Ds   Rxr 2016.03.17 17:50

如果代码不是你写的,并且确信以前是好的,那么可能是头文件或者lib文件没有引用对路径,在项目-属性-目录中看看

huangkang66
huangkang66 谢谢,你说的是vc++ directories的includes directories和library directories吗?但就算错了也并不知道怎么改。。
一年多之前 回复
wangyaninglm
wangyaninglm   Ds   Rxr 2016.03.18 10:22

2019错误一般都是环境没有配置正确,少LIB,找到直接放工程里就ok

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!