How to specify /MT in MATLAB coder?

2 ビュー (過去 30 日間)
Theron FARRELL
Theron FARRELL 2025 年 6 月 10 日
編集済み: Abhishek 2025 年 6 月 16 日
HI there,
I am using MATLAB coder to generate C++ code. Where can I set /MT (multithread) or /MD (multithread DLL)? Many thanks.
  1 件のコメント
Abhishek
Abhishek 2025 年 6 月 16 日
編集済み: Abhishek 2025 年 6 月 16 日
Hi @Theron FARRELL, You can set '/MT' or '/MD' in MATLAB Coder under Code Generation Settings then go to Toolchain, then to Custom Compiler Flags.

サインインしてコメントする。

回答 (1 件)

Theron FARRELL
Theron FARRELL 2025 年 6 月 16 日
Cheers.
Is it here? If I choose C++, will I also need to add /MD in the row for C Compiler as well?
  1 件のコメント
Abhishek
Abhishek 2025 年 6 月 16 日
Yes, you need to add '/MD' or '/MT' to both the C Compiler and C++. Did setting such flag work for you @Theron FARRELL ?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by