Why do I get the error 'specified module could not be found' when using 'loadlibrary'?
7 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-8-18
回答: MathWorks Support Team
2021-1-25
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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!