deploying Matlab C++ library to 64 bit
조회 수: 2 (최근 30일)
이전 댓글 표시
I am currently developing a C++ program to interact with a C++ shared library created with Matlab R2007a compiler. Somehow, I cannot pass the initialization stage. First I call mclInitializeApplication(NULL,0)) and this goes ok. But when I call let's say MyFunctionInitialize() it fails.
Previously this was working but now when I deployed the application on a 64 - bit machine, it does not work anymore. Could the 64 bit environment be a problem?
Alina Badau
댓글 수: 0
답변 (3개)
Friedrich
2011년 7월 14일
Hi,
is the target OS of the same type like the OS where the DLL is compiled on? What error do you get?
댓글 수: 0
Alina Badau
2011년 7월 14일
댓글 수: 7
Friedrich
2011년 7월 14일
Dont run the dep walker on the shared lib. Compile everything into an EXE and then make a RUNTIME PROFILE of that exe. The right steps for this are:
i) choose File -> open and select your application
ii) choose Profile -> start profiling
iii) a window pops up
iv) press okay
v) your applications should start now
vi) after your application finished running investigate the log for hints what went wrong.
You can also:
vii) choose File -> save as
viii) upload the dwi file somewhere an post the link here
Friedrich
2011년 7월 14일
Sounds like a missing redistributable package for Visual Studio 2010. Please install it on the target machine:
Copying DLLs from that package is not a good idea! Since you are running a 32bit application you need the 32bit redist. package.
댓글 수: 14
Friedrich
2011년 7월 14일
It must be this issue. You can find some stuff in the internet talking about this missing DLL:
http://www.rhyous.com/2010/09/16/avoiding-the-msvcr100-dll-or-msvcr100d-dll/
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!