Build .dll fails, no compiler found? MinGW _IS_ installed - ver 2016a

Hi,
I am trying to build a .dll I have MinGW installed, but the compilation fails. The log ends with
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler
However: Earlier the log states
... Looking for compiler 'MinGW64 Compiler (C)' ...
... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\MATLAB\SupportPackages\R2016a\MW_MinGW_4_9').
... Looking for file 'C:\MATLAB\SupportPackages\R2016a\MW_MinGW_4_9\bin\gcc.exe' ...Yes.
... Looking for folder 'C:\MATLAB\SupportPackages\R2016a\MW_MinGW_4_9' ...Yes.
Found installed compiler 'MinGW64 Compiler (C)'.
Any ideas what I could do to fix this?
Br, Peter

Answers (1)

Yatin
Yatin on 15 Nov 2016
Edited: Yatin on 15 Nov 2016
Can you post the latest output by running the command
>> mex -setup -v
from your MATLAB Terminal Window?
Also please note that MinGW is not a Supported Compiler for Deployment products. Please refer to the MinGW FAQ page.

Asked:

on 3 Nov 2016

Edited:

on 15 Nov 2016

Community Treasure Hunt

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

Start Hunting!