How to specify /MT in MATLAB coder?
Afficher commentaires plus anciens
HI there,
I am using MATLAB coder to generate C++ code. Where can I set /MT (multithread) or /MD (multithread DLL)? Many thanks.
2 commentaires
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.
Theron FARRELL
le 3 Août 2026 à 1:14
Réponses (2)
Theron FARRELL
le 16 Juin 2025
0 votes
2 commentaires
Abhishek
le 16 Juin 2025
Yes, you need to add '/MD' or '/MT' to both the C Compiler and C++. Did setting such flag work for you @Theron FARRELL ?
Theron FARRELL
le 3 Août 2026 à 1:24
Test
le 3 Août 2026 à 5:17
0 votes
df
Catégories
En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


