Why do I get the error 'specified module could not be found' when using 'loadlibrary'?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 18 Aug. 2020
Beantwortet: MathWorks Support Team
am 25 Jan. 2021
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?
Akzeptierte Antwort
MathWorks Support Team
am 18 Aug. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Modulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!