필터 지우기
필터 지우기

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

조회 수: 2 (최근 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월 19일
I use VS2008 320bit to deploy the DLLs, is this supported?

댓글을 달려면 로그인하십시오.

채택된 답변

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