Problem in creating C++ shared library using mingw in MATLAB Compiler SDK
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Support for MinGW-w64 C/C++ Compiler finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!