I want the m-file of addheader function that loads the functions defined in the additional header file

I am using the function Loadllibrary, which has an "addheader" option went I use this option I get the following error :
??? Undefined function or method 'addheader' for input arguments of type 'char'.
And here is the way I write the command :
loadlibrary EnobioAPI.dll Enobio.h
addheader 'EnobioAPI_global'
So I think that I should download this function because when I use the help to look for this function, I got a message that this function is not exist.
Looking for your reply
Nada

5 Comments

Something is wrong because the code you specified could not cause that error. There is no download needed unless you are using MATLAB 6.5 (R13). Given the way you specified the inputs to loadlibrary the quotes around the header name are not needed and will cause problems.
Did you install the download for loadlibrary? If you did then you will need to reinstall MATLAB because the download is only for R13.
what do you mean by " the download for loadlibrary" and how to install it?
Thanks in advance

Sign in to comment.

 Accepted Answer

There is no function or file addheader. The command should be:
loadlibrary EnobioAPI.dll Enobio.h addheader EnobioAPI_global
or
loadlibrary('EnobioAPI.dll','Enobio.h','addheader', 'EnobioAPI_global')

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!