How to specify /MT in MATLAB coder?
Mostra commenti meno recenti
HI there,
I am using MATLAB coder to generate C++ code. Where can I set /MT (multithread) or /MD (multithread DLL)? Many thanks.
2 Commenti
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
il 3 Ago 2026 alle 1:14
Risposte (2)
Theron FARRELL
il 16 Giu 2025
0 voti
2 Commenti
Abhishek
il 16 Giu 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
il 3 Ago 2026 alle 1:24
Test
il 3 Ago 2026 alle 5:17
0 voti
df
Categorie
Scopri di più su MATLAB Coder in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


