Problem in creating C++ shared library using mingw in MATLAB Compiler SDK
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Compiler SDK dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!