Error in Installing MinGW-w64 C/C++ Compiler

To install the MinGW-w64 C/C++ Compiler on Windows 10 with MATLAB R2016b, I used the Add-Ons menu. However, I got the following error message:
"There was a problem installing the third-party software. To resolve this issue, contact Technical Support"
Then, when I run "mex -setup", I got the following error:
mex -setup
Error using mex
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64
Compiler.
Could you please help me to solve this problem?

3 Comments

I had an alternative solution according to Samuel Whiteley 's suggestion.
1. Download the compiler from a third party (e.g. from this link ) Follow instructions normally to install it onto the C:\ drive.
2. Manually Configure MinGW for MATLAB ( from this link )
thanks Wonsang You but how can i Configure MinGW manually
Many thanks Wonsang You!

Sign in to comment.

Answers (1)

Products

Asked:

on 14 Jan 2017

Commented:

on 13 Dec 2020

Community Treasure Hunt

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

Start Hunting!