How to specify /MT in MATLAB coder?
Mostrar comentarios más antiguos
HI there,
I am using MATLAB coder to generate C++ code. Where can I set /MT (multithread) or /MD (multithread DLL)? Many thanks.
2 comentarios
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
el 3 de Ag. de 2026
Respuestas (2)
Theron FARRELL
el 16 de Jun. de 2025
0 votos
2 comentarios
Abhishek
el 16 de Jun. de 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
el 3 de Ag. de 2026
Test
el 3 de Ag. de 2026
0 votos
df
Categorías
Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


