Why do I get the error 'specified module could not be found' when using 'loadlibrary'?

조회 수: 9 (최근 30일)
When using MATLAB's "loadlibrary" function, I get the following error:
>> loadlibrary('example.dll', 'example.h');
There was an error loading the library "example.dll"
The specified module could not be found.
How do I resolve this issue?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2020년 8월 18일
This error can occur on Windows platforms when MATLAB successfully locates and compiles the header file but fails to locate the DLL file. One possible solution is to specify the absolute path to the DLL file so that MATLAB does not need to search for it:
>> loadlibrary('C:\Users\user\example\example.dll', 'example.h');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modulation에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by