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

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.

 采纳的回答

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.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Call C from MATLAB 的更多信息

产品

版本

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by