MATLAB Support for MinGW-w64 C/C++ Compiler

Install the MinGW-w64 C/C++ compiler for Windows


Updated 15 Mar 2023

Editor's Note: Popular File 2016 2017 2018 2019 2020

This support package is currently unable to download third-party software for MATLAB R2017a and earlier versions. To install MinGW, complete the workaround instructions in the Bug Report, then return to this page and follow the instructions for R2017b and later.

MATLAB R2017b and later versions are unaffected.

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.
Table of MinGW support by MATLAB release.
MinGW 8.1 is only supported for MATLAB and must be configured manually. MinGW 8.1 can be downloaded from here. Follow instructions on this page to configure MinGW 8.1 as 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:
MATLAB Release Compatibility
Created with R2015b
Compatible with R2015b to R2023a
Platform Compatibility
Windows macOS Linux
Find more on Java Package Integration in Help Center and MATLAB Answers

Inspired: YOKOGAWA GM10 communication interface

Community Treasure Hunt

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

Start Hunting!