Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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 commentaires
study
study le 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
study
study le 19 Oct 2011
I use VS2008 320bit to deploy the DLLs, is this supported?

Connectez-vous pour commenter.

Réponse acceptée

study
study le 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.

Plus de réponses (0)

Catégories

En savoir plus sur C Shared Library Integration dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by