How to create/use prototype fimes when deploying Matlab applications: Error using loadlibrary

3 次查看(过去 30 天)
Dear all,
I have made a GUI in Maltab and a part of the code uses a library and some DLLs. The application works very well. However, when trying to deploy it (compile it into an executable), I get an error because of the loading of libraries in deployed applications. More precisely, at the line: [ notfound , warnings ] = loadlibrary( obj.sLibrary ,'my_lib.h','mfilename', 'my_lib.m', 'addheader' , 'my_lib' ); outputs the following error:
Error using ==> loadlibrary(line 240). Deployed applications must use a prototype file instead of a header file. To create the prototype, use the loadlibrary mfilename option. Use the prototype file in compiled code. See http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/brb8oui.html for more information.
I have tried many attempts and with no positive result. I am not familiar with prototype files, I could not find any detailed reference. Therefore, I have edited the file "my_lib.h" and saved a new copy of it and renamed it "my_lib.m".
In spite of my best efforts, I cannot figure this thing out. Can anyone help me?
Best regards, Ion

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by