MATLAB Answers

How do I install MinGW for use in MATLAB?

380 views (last 30 days)
How do I install MinGW for use in MATLAB?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Feb 2021
Edited: MathWorks Support Team on 15 Feb 2021
The recommended way is to install the Support Package "MATLAB Support for MinGW-w64 C/C++ Compiler". You can install this support package in two ways:
  1. In MATLAB, on the "Home" tab, click Add-Ons. In the pop-up window, search for the term "mingw" then click "MATLAB Support for MinGW-w64 C/C++ Compiler". Choose the install option and follow the steps for installation.
  2. Go to the following page on MathWorks File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c-compiler Click the Download button. This downloads a "mingw.mlpkginstall" file. Double click this file and follow the steps for installation.
FAQ: This link provides answers to many frequently asked questions about installing the MinGW compiler:
  7 Comments
mez kari
mez kari on 13 Jun 2019
hello
i have matlab 2014a can you help me to get the MinGW-w64 C/C++ Compiler?

Sign in to comment.

More Answers (2)


Afaf Saad
Afaf Saad on 23 Sep 2018
am trying to install the mingw but there is error during the install, can anyone help ? i downloaded from here :https://sourceforge.net/projects/mingw-w64/

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!