How can I load a *.so C Library with function pointers as parameters using MATLAB 7.0.4 (R14SP2)?

2 views (last 30 days)
I would like to load a *.so shared object written in C using LIBFUNCTIONS in MATLAB 7.0.4 (R14SP2).
I have successfully loaded my library using the LOADLIBRARY function. However, when I view the list of available library functions using the LIBFUNCTIONS command, I am unable to see the library functions that use function pointers as inputs.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 2006b (R2006b) LOADLIBRARY function documentation in the form of a Note. For previous product releases, read below for any possible workarounds:
The abilty to use function pointers as inputs to library functions is not available in MATLAB. MATLAB Generic DLLs Interfaces do not support library functions with a function pointer input, since there is no way to write a function in MATLAB that would be compatible with a C function pointer.
There are no workarounds.

More Answers (0)

Products


Release

R14SP2

Community Treasure Hunt

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

Start Hunting!