How to specify /MT in MATLAB coder?

2 visualizzazioni (ultimi 30 giorni)
Theron FARRELL
Theron FARRELL il 10 Giu 2025
Modificato: Abhishek il 16 Giu 2025
HI there,
I am using MATLAB coder to generate C++ code. Where can I set /MT (multithread) or /MD (multithread DLL)? Many thanks.
  1 Commento
Abhishek
Abhishek il 16 Giu 2025
Modificato: Abhishek il 16 Giu 2025
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.

Accedi per commentare.

Risposte (1)

Theron FARRELL
Theron FARRELL il 16 Giu 2025
Cheers.
Is it here? If I choose C++, will I also need to add /MD in the row for C Compiler as well?
  1 Commento
Abhishek
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 ?

Accedi per commentare.

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Prodotti


Release

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by