Explanation

The loadlibrary function generates .m files when the code calls it with C/C++ header files. Because deployed applications cannot access .m files generated by the MATLAB Compiler at runtime, this form of loadlibrary does not work in a deployed application.


Suggested Action

Change the code to use the .m file prototype form of loadlibrary.