Import large C++ project into Matlab

I have a C++ console application with lots of classes, and external dependencies, and I want to integrate it with Matlab project.
So, I have built the C++ project as DLL, but I don't get how to continue. I have tried just to call loadlibrary() giving the .dll filename.
Please, help to understand what to do next.

댓글 수: 3

James Tursa
James Tursa 2020년 8월 12일
편집: James Tursa 2020년 8월 12일
Do you have a header file with all of the exported function prototypes? Do all of your functions use the extern "C" interface?
Suzy
Suzy 2020년 8월 12일
No, I don't have. I am actually first time making dll. I have just set Configuration Properties->General->Configuration type to Dynamic library in Visual studio.
James Tursa
James Tursa 2020년 8월 12일
If you look at the documentation for loadlibrary, you will see that you need to feed it a header file that has all of the exported function prototypes in it, and that those functions must use the extern "C" interface.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 8월 12일

댓글:

2020년 8월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by