Problem in creating C++ shared library using mingw in MATLAB Compiler SDK
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I trying to convert simple MATLAB Script using MATLAB Compiler SDK by using "C++ Shared Library" Option
function [InDouble2, RetDouble] = MatLabCalcSum(InDouble1, InDouble2)
InDouble2 = InDouble2 + 1;
RetDouble = InDouble1 + InDouble2;
end
Compiled in Visual Studio 2013 and MinGW 5.3.
DLL which was compiled using Visual Studio compiler has proper exported function as "void MatLabCalcSum(int,class mwArray &,class mwArray &,class mwArray const &,class mwArray const &)" in the DLL and I am able to make a call from my C++ code and executes good.
But the DLL compiled in MinGW the script function exported as mangled name "_Z13MatLabCalcSumiR7mwArrayS0_RKS_S2_" which I can't call from other C++ code.
Please help me in resolving this issue.
Note: To choose a different compiler I am executing following command and selecting appropriate options
>> mbuild -setup
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Support for MinGW-w64 C/C++ Compiler en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!