フィルターのクリア

Standalone Executable starting C++ application

3 ビュー (過去 30 日間)
Martin Fuchs
Martin Fuchs 2024 年 7 月 24 日
回答済み: Amith 2024 年 7 月 25 日
Hello, we are compiling a standalone matlab application with matlab 2022b which starts a C++ compiled application. The C++ executable is compiled with c++20 standard. However, starting the application crashes using a c++20 function. With the process explorer we see that the dlls from the Matlab folder are loaded which are not compatible to c++20. What can we do?

回答 (1 件)

Amith
Amith 2024 年 7 月 25 日
Hi Martin,
It has been observed that building a C++ standalone executable with MATLAB, while linking to MATLAB libraries, will fail if the release version of the executable does not match the release version of the MATLAB libraries.
The only workaround to resolve this issue is to use the same MATLAB release for both creating the DLL and the C++ standalone executable. Then, attempt to integrate them into a single C++ desktop application.
Hope this helps!

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by