MinGW-w64 is a compiler suite for Windows based on the GNU tool chain. It includes a GCC compiler and related tools for compiling C and C++ applications for Windows. C and C++ applications compiled with MinGW-w64 GCC can be called from MATLAB using MEX. This GCC compiler can also be helpful for other MathWorks products that require a C or C++ compiler.
R2023b and later: MinGW 6.3 must be configured manually. MinGW 6.3 can be downloaded from here. R2023a: MinGW 8.1 must be configured manually. MinGW 8.1 can be downloaded from here. Follow instructions on this page to configure MinGW 6.3 or 8.1 as a MEX compiler.
FAQ: This link provides answers to some frequently asked questions.
See additional information on installing this compiler at:
Learn more about other compilers supported by MathWorks Products at:
If you are having difficulty installing, please contact Technical Support or see MATLAB Answers: