problem using mex -setup

Windows 10 and Matlab 2015b
>> 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. For more options, see
http://www.mathworks.com/support/compilers/R2015b/win64.html.

Answers (5)

Walter Roberson
Walter Roberson on 16 Nov 2015

2 votes

4 Comments

hi, i got the following problem after install mingw that u are suggest above but still i got the following problem "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. For more options, see http://www.mathworks.com/support/compilers/R2015b/win64.html. " what should i do?
Did you install MinGW-64 compiler from the Mathworks AddOns ? Doing so, will setup your environment so that mex will be able to find the compiler. Please refer to http://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html for instructions on how to use AddOns.
Hi,
I have the same problem mentioned in the initial post. When I click the "Add-ons" button in order to install MinGw, a window opens (Add-On Explorer) and the following message appears: "The Add-On Explorer is currently unavailable. We've been notified of the issue and are looking into it." (do you get the same error too or is it just me?)
Is there another way I can download and install MinGW?
I have tried this and this but the error remains.
I have the same problem. I installed the MIGGW-w64 from the AddOn but still getting the same error (No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit http://www.mathworks.com/support/compilers/R2016b/win64.html.) Does anyone have the way to fix it?

Sign in to comment.

Abhilash Nair
Abhilash Nair on 9 Dec 2016
im facing the same problem. Any solution yet?
Asim Muhammad
Asim Muhammad on 29 Aug 2016
Edited: Walter Roberson on 29 Aug 2016
>> 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. For more options, visit
http://www.mathworks.com/support/compilers/R2016a/win64.html.

1 Comment

Install one of the supported compilers, such as one of the Microsoft Visual Studio Professional editions. Or visit that link http://www.mathworks.com/support/compilers/R2016a/win64.html to get a link to install MingW

Sign in to comment.

Slim ABDELHEDI
Slim ABDELHEDI on 8 Nov 2016

0 votes

The Add-On Explorer is currently unavailable.
We've been notified of the issue and are looking into it.

Asked:

on 15 Nov 2015

Commented:

on 15 Nov 2017

Community Treasure Hunt

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

Start Hunting!