How can I get mex -setup to find either the Visual Studio or MinGW compiler?

6 views (last 30 days)
Windows 7
64 bit
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 (2)

Walter Roberson
Walter Roberson on 13 Oct 2015
The download link for the supported MingW appears to be at http://tdm-gcc.tdragon.net/download . Have you tried installing that?
With regards to Visual Studio: in R2015b none of the Express products are supported. Which VS are you trying to use?

Helen
Helen on 29 Jul 2016
To install the MinGW-w64 compiler, use the MATLAB Add-Ons menu. Search for MinGW or select from Features.

Tags

Community Treasure Hunt

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

Start Hunting!