Problem while DLL-create with deploytool

Hello!
I've got a problem while create a dll-library with deploytool on Matlab 2012a (64). I need to make a dll-library with one function from M-file and after that use this function in Matlab from this dll.
I compile my M-file with deploytool into c++ shared library (Microsoft SDK compiler).
After compilation and loading this library into Matlab (loadlibrary), function libfunctionsview can't see my function, which was in M-file. But when I take a look into h-file generated by deploytool, I found decloration of this function.
Could anyone tell me, what i need to do to get this function in my library?

2 comentarios

Perhaps the library was not loaded correctly? Try running LOADLIBRARY with two output arguments to find out if there were problems loading it:
[notfound,warnings] = loadlibrary(...)
Alexandr
Alexandr el 25 de Sept. de 2012
There are many warnings, but most of them are the same: "Function pointer types are unsupported in structures HRESULT ( __stdcall * GetCurrentPortName )" in matlab's header files. And there are no word about my function. But at the same time auto-generated functions like "dlltestsInitializeWithHandlers" or "mlxAconv" are loaded without problem.
Any way, I made a DLL with C++ and compiled it without Matlab with SDK compiler. Matlab loads it and can see the functions inside. But unfortunately it's not a good solution of the problem at the moment, because I need to use some native matlab functions.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Sept. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by