I created a shared library to export a Matlab function using Matlab Compiler SDK. I am looking to call this library from a VC++ application.
I have two PCs. On my first PC, I was able to call the library function, and even get the expected output. However, on the second PC, I get the following run time error message -
The program cannot start because mclmcrrt.dll is missing from your computer.
I located the file at path : *C:\Program Files\MATLAB\MATLAB Runtime\v85\runtime\win64*
How do I change Visual Studio Project properties so that this dll gets loaded at run-time?
In general, what Visual Studio project property sets the directories from which a dll can be loaded?
P.S. I also added the folder to system PATH, but that did not help.
Aucun commentaire:
Enregistrer un commentaire