필터 지우기
필터 지우기

Failed to Initialize MATLAB R2023b Runtime Library in Visual Studio 2019 C++ Project

조회 수: 14 (최근 30일)
Alexander Mclean
Alexander Mclean 2024년 5월 16일
댓글: 王栋 2024년 7월 23일 11:08
I generated a C shared library type DLL for a custom function using the MATLAB Library Compiler and created a console C++ project in Visual Studio 2019 to call the DLL function and continue development. However, when initializing the DLL function, it reports a failure. I have set the PATH in the system environment variable to D:\Program Files\MATLAB\MATLAB Runtime\R2023b\bin\win64, and I have also set the include and library directories in Visual Studio 2019, and entered as many MATLAB runtime libraries as possible in the linker: mclmcr.lib; mclmcrrt.lib; libmat.lib; libmex.lib; libmx.lib; along with the custom .lib file. Why is the runtime library initialization still failing? My MATLAB version is R2023b, the compiler version is 23.2, and the runtime library version is 23. What could be causing the runtime library initialization to fail?

답변 (0개)

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by