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

2 次查看(过去 30 天)
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

回答(1 个)

Yatin
Yatin 2016-11-15
编辑:Yatin 2016-11-15
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.

Community Treasure Hunt

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

Start Hunting!

Translated by