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
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
2020-8-12
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 中查找有关 Call C/C++ from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!