Problem in creating C++ shared library using mingw in MATLAB Compiler SDK
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!