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

3 views (last 30 days)
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 Comments
study
study on 18 Oct 2011
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

Sign in to comment.

Accepted Answer

study
study on 20 Oct 2011
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.

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!