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!