I have installed the MinGW-w64 C/C++ compiler, but I am still getting the following error when using Library Compiler:
Using R2017b:
No supported compiler or SDK was found.
Using R2019b:
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler
The Library Compiler (mcc) log contains the following:
Found installed compiler 'MinGW64 Compiler (C++)'.... Looking for compiler 'MinGW64 Compiler with Windows 10 SDK or later (C++)' ...... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset').... Looking for file 'C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset\bin\g++.exe' ...Yes.... Looking for folder 'C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mingw_w64.instrset' ...Yes.... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder ...No.... Looking for registry setting 'HKCU\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder ...No.... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder ...No.... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder ...No.Did not find installed compiler 'MinGW64 Compiler with Windows 10 SDK or later (C++)'....No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; visit https://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html. For more options, visit https://www.mathworks.com/support/compilers.
Best Answer