Error: The specified procedure could not be found.

Hi there,
A colleague of mine has compiled and provided a Matlab function which I have used in a Visual Studio 2010 project. For that I had to install MRC. The code runs fine from Visual Studio, however, when I run the same code from another tool (discrete event simulator based on C++) I get the following error message:
Initializing MCR Begin Could not initialize the application. Fatal error loading library D:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v79\bin\win32\mclmcr.dll Error: The specified procedure could not be found.
Any hints would be appreciated.
Thank you, Ivan

답변 (2개)

Walter Roberson
Walter Roberson 2012년 6월 1일

0 개 추천

That message usually means that a DLL needed by mclmcr.dll could not be found. It is recommended to download Dependency Walker and to use it to figure out which libraries are needed and where they are being found. You will need to run it in the two different contexts, as the different tools might establish different library search paths.

댓글 수: 4

Ivan
Ivan 2012년 6월 1일
Thank you Walter.
How is it that when running from a VS2010 project mclmcr.dll can find a DLL and in the other context (from the other tool) it cannot? How do you see us adding these missing libraries, in the code or in the compiler options? Does it look like some paths are missing?
Thanks, Ivan
Ivan
Ivan 2012년 6월 1일
Hi Walter,
I did what you suggested and found several files that could not be found:
MSVCR80.DLL
GPSVC.DLL
IESHIMS.DLL
Any suggestions? Is it simply adding the files?
Thanks, Ivan
The lost post in the following might help a bit, maybe, for GPSVC.DLL
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/328d262b-420b-4a31-8493-2a26ffc4b235
MSVCR80.DLL I seem to remember is the VC runtime
Which OS are you using? IESHIMS.DLL will apparently show up as missing on XP but not be needed http://stackoverflow.com/questions/2465111/dependency-walker-reports-ieshims-dll-and-wer-dll-missing
Ivan
Ivan 2012년 6월 2일
I am using Windows 7.

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

Mike Woodward
Mike Woodward 2012년 6월 26일

0 개 추천

It shows how to get Visual Studio to build a file Simulink can simulate with.
Mike

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2012년 6월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by