Why do I receive the warning "library class already exists" using LOADLIBRARY in MATLAB 7.0 (R14)?

13 次查看(过去 30 天)
When I run the following code:
hfile = [matlabroot '\extern\include\matrix.h'];
loadlibrary('libmx.dll', hfile)
I receive the following warning:
Warning: The library class 'libmx' already exists

采纳的回答

MathWorks Support Team
This warning occurs in MATLAB 7.0 (R14) and later due to the fact that the library class has already been loaded.
To prevent this warning, use the UNLOADLIBRARY command:
unloadlibrary libmx
hfile = [matlabroot '\extern\include\matrix.h'];
loadlibrary('libmx.dll', hfile)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call C from MATLAB 的更多信息

产品


版本

R14SP1

Community Treasure Hunt

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

Start Hunting!

Translated by