フィルターのクリア

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 Center および File ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by