I am having problem with MinGW installer (Matlab version 2017a)
Show older comments

I am having problem with Mingw downloading to matlab2017a.
Answers (1)
Lokesh
on 27 Nov 2023
Hi,
As per my understanding, you are facing some issues with MinGW installer.
It is possible that the error is due to a network connection issue. In some cases, a firewall or antivirus might be blocking the connection. To resolve this, try temporarily deactivating any such software during the download.
As a workaround, you can manually install the MinGW Compiler by following these steps:
- Delete the MinGW installation files from: ‘C:\Users\<username>\MATLAB\Downloads\SupportPackages\R2017a\downloads\R2017a’ . If you do not find the MinGW files continue from step 2.
- Download the installation files from the following webpage: https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%2520Installer/Previous/1.1309.0/ . You will need the file ‘tdm64-gcc-4.9.2.exe’ for 64-bit.
- Start the installation. Deactivate the option 'Check for updates' on the welcome screen. Choose a path without spaces, e.g.: ‘C:\TDM-GCC-64’
- After the installation create the environment variable: ‘MW_MINGW64_LOC=C:\TDM-GCC-64’ . This is described on the following page: http://www.mathworks.com/help/matlab/matlab_external/compiling-c-mex-files-with-mingw.html
- Restart MATLAB and type below command in MATLAB command prompt:
>> mex -setup
This should now recognize the MinGW.
Please refer to the following MATLAB Answer to know more about the issue:
I hope this resolves the issue you were facing.
Best Regards,
Lokesh
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!