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.

 採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日

0 投票

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 ExchangeCall 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