Mingw not working for C++ compilation
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have installed mingw from add-ons in MATLAB2022b,
when i run command: mex -setup C --> MATLAB detects mingw
but when i run command: mex -setup C++ --> MATLAB is unable to locate it.

version : MinGW-W64-builds-4.3.0
0 commentaires
Réponses (1)
Hitesh
le 16 Mai 2025
Modifié(e) : Hitesh
le 16 Mai 2025
Hi Darshna,
Since you already appeared to have an existing installation of the MinGW Support Package, it is much easier if you just edit the system environment variable MW_MINGW64_LOC in the Windows settings (with the help of an admin) to have this value:
C:\Program Files\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev2\mingw64
(which is where the MinGW compiler shipped with the support package resides).
Then, restart MATLAB.
For more information regarding this issue, kindly refer to the following MATLAB Answer:
4 commentaires
Hitesh
le 2 Juin 2025
Hi Darshna,
I think this might be best handled with MathWorks tech support. Could you submit a technical support request?
Voir également
Catégories
En savoir plus sur MATLAB Support for MinGW-w64 C/C++ Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!