Problems with deploying C/C++ libraries created by MATLAB 2009b compiler in win7 (64bit)

1 次查看(过去 30 天)
Dear folks,
My system includes: - VS2008 - MATLAB 2009b - Win7 (64bit)
I'm trying to generate C/C++ libraries to use in my C projects. I tried several ways (linking required libs, dirs,...) and still cannot initalize MCR. when I compiled the project in VS2008, it brings errors like this:
Error 1 error LNK2019: unresolved external symbol _mclInitializeApplication_proxy referenced in function _wmain testMATLABtranslation.obj testMATLABtranslation Error 2 fatal error LNK1120: 1 unresolved externals C:\Users\USER\Documents\Visual Studio 2008\Projects\testMATLABtranslation\Debug\testMATLABtranslation.exe testMATLABtranslation
despite the program is very short:
#include "stdafx.h" #include "test2deploy.h"
int _tmain(int argc, _TCHAR* argv[]) { mclInitializeApplication(NULL,0);
return 0; }
the DLLs are created from MagicMatrix sample of MATLAB.
Plz anyone helps me solve this. Im quite a novic with compilers and denv and have stucked with it for almost a week
Thanks, Shawn
  3 个评论
study
study 2011-10-18
Is it indicated in project properties/Additional Dependencies? if so, they are mclmcrrt.lib, test2deploy.lib. I did try to put mclmcrrt711.lib in this list but still didn't work

请先登录,再进行评论。

采纳的回答

study
study 2011-10-20
I've reinstalled MATLAB 32bit and the deployment was OK. I probably missed the note number 6. ttp://www.mathworks.com/support/compilers/R2009b/win64.html. I've should have done some modifications with VS2008 installation so that it can work with MATLAB 64bit
Perhaps, I'll try it next time.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by