I am trying to run the MATLAB compiler sdk example given in this link in C. https://www.mathworks.com/help/compiler_sdk/cxx/integrate-a-c-shared-library-into-an-application.html
I have created the shared library files and MATLAB runtime application. To implement it, I created a new project in VS 2019 and included the matrix.c as source file. My runtimme is saved in matlab trial folder, runtime in v910 folder. In the project settings, I have made these changes
VC++ Directory-> library directories->
D:\matlab trial\v910\extern\lib\win64\microsoft;C++ directories-> additional include directories->
D:\matlab trial\librarytrial (my c shared library is saved in this folder) D:\matlab trial\v910\extern\include
Linker-> Additional library dir ->
D:\matlab trial\librarytrial; D:\matlab trial\v910\extern\lib\win64\microsoft; D:\matlab trial\v910\bin\win64;
Linker->input-> libmatrix.lib (cshared library ),
included all the lib files in the runtime library folder
Added D:\matlab trial\v910\runtime\win64 to my environment path.
When I compile the code it says "the code execution cannot proceed because mclmcrrt9_10.dll was not found".
This file is in D:\matlab trial\v910\runtime\win64. This path I already included in my environment path.
What to do in this case?
Reinstalling VS helped solve this issue.