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