Why do I get a "No supported compiler was found" error when compiling Excel Add-ins, although MinGW is installed?

12 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 25 de Jun. de 2021
Editada: MathWorks Support Team el 25 de Jun. de 2021
When compiling Excel add-ins or COM components from MATLAB using MinGW. you will also need to install Windows SDK 10. The log file suggests that Windows SDK 10 is not installed on the system.
See the following link on installing Windows SDK 10 with MinGW:
You can take a look at the software requirements for using the MATLAB Compiler with other MATLAB releases in the following link:

Más respuestas (0)

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by