How to specify /MT in MATLAB coder?

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

标签

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by