How to create a wrapper workaround for C++ Library Interface with limitations of type float**, float const ** (is snot supported Type)
Show older comments
I have a third party C++ Library without source code and i want to create a Matlab C++ Interface with the clibgen.generateLibraryDefiniton function. The compiler (MingGW64 C++) throws the following warnings :
Warning: Some C++ language constructs in the files for generating interface file are not supported and not imported.
Did not add 'MyFunctions1' at MyLib.h:198.'float const * *' is not a supported type.
Did not add 'MyFunctions1' at MyLib.h:353.'float * *' is not a supported type.
Did not add 'Myfunctions3' at MyLib.h:1048.
'FILETIME' is an alias of type '_FILETIME'. Type '_FILETIME' is from std namespace or system header and is not supported.
- ** pointers
- std namespace and system header
The _FILETIME type is included in the windows.h and is therefore defined in a system header.
%% Definition of the functions in MyLib.h file of the library
%const Float **
DLLAPI int WINAPI MyFunctions1(HNDL handle, int descinfo, const float** version,...
const char** infostring, const char** commentstring);
%Float **
DLLAPI int WINAPI MyFunctions2(HNDL handle, const char** namelist, float** valuelist, unsigned int listlen);
% FILETIME*
DLLAPI int WINAPI Myfunctions3(HNDL handle,unsigned int fileidx,char * namebuf,unsigned int maxbufsize,...
FILETIME* pftLastWriteTime,DWORD* nFileSizeHigh,DWORD* nFileSizeLow);
Because i have no experience in C++ programming i have no idea, how a wrapper function could look like for this special cases or if it is even possible to handle that issue.
I hope somebody can help out. Thanks a lot
Accepted Answer
More Answers (0)
Categories
Find more on Build MATLAB Interface to C++ Library in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!