当前位置:我的异常网» VC/MFC » ,matlab与MFC混合编程有关问题
,matlab与MFC混合编程有关问题
www.myexceptions.net 网友分享于:2013-01-17 浏览:48次
求助,matlab与MFC混合编程问题
用的是matcom混编,就单纯一个打开图像就出现这么多问题,求高手指点
mat_vc_1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Mm::~Mm(void)" (__imp_??1Mm@@QAE@XZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Mm::~Mm(void)" (__imp_??1Mm@@QAE@XZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl initM2(int,int)" (__imp_?initM2@@YAXHH@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Mm::Mm(void)" (__imp_??0Mm@@QAE@XZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mm __cdecl drawnow(void)" (__imp_?drawnow@@YA?AVMm@@XZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mm __cdecl set(class Mm const &,class Mm const &,class Mm const &)" (__imp_?set@@YA?AVMm@@ABV1@00@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mm __cdecl im2double(class Mm const &)" (__imp_?im2double@@YA?AVMm@@ABV1@@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Mm::cols(void)const " (__imp_?cols@Mm@@QBEHXZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Mm::rows(void)const " (__imp_?rows@Mm@@QBEHXZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int & __thiscall Mm::getndims(void)const " (__imp_?getndims@Mm@@QBEAAHXZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int * __thiscall Mm::getdims(void)const " (__imp_?getdims@Mm@@QBEPAHXZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Mc::~Mc(void)" (__imp_??1Mc@@QAE@XZ)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mm __cdecl clear(class Mc const &)" (__imp_?clear@@YA?AVMm@@ABVMc@@@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mc __cdecl CL(class Mm const &)" (__imp_?CL@@YA?AVMc@@ABVMm@@@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mm __cdecl imread(class Mm const &,class Mm const &,struct i_o_t,class Mm &,class Mm &)" (__imp_?imread@@YA?AVMm@@ABV1@0Ui_o_t@@AAV1@2@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct i_o_t i_o" (__imp_?i_o@@3Ui_o_t@@A)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mm __cdecl TM(char const *)" (__imp_?TM@@YA?AVMm@@PBD@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Mm & __thiscall Mm::operator=(class Mm const &)" (__imp_??4Mm@@QAEAAV0@ABV0@@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Mm __cdecl winaxes(void *)" (__imp_?winaxes@@YA?AVMm@@PAX@Z)
mat_vc_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl exitM(void)" (__imp_?exitM@@YAXXZ)
Debug/mat_vc_1.exe : fatal error LNK1120: 19 unresolved externals
------解决方案--------------------
应该是没有包含库文件吧,试试:点击Project/Add to Project/Files,选择matcom安装目录\lib\v4500v.lib文件,将其增加到工程中。
文章评论