I am trying to use MinGW and Windows SDK 10 compiler combination to compile an Excel Add-in, I have installed MinGW and Windows 10 SDK, but when I execute the compiler configuration command:
>> mbuild -setup -client mbuild_com -v
I got the following snippet:
... Looking for compiler 'MinGW64 Compiler (C++)' ...... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\mingw64').... Looking for file 'C:\mingw64\bin\g++.exe' ...Yes.... Looking for folder 'C:\mingw64' ...Yes.... Looking for environment variable 'MW_MINGW64_LOC' ...Yes ('C:\mingw64').... Executing command 'C:\mingw64\bin\g++ -dumpmachine' ...Yes ('x86_64-w64-mingw32').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:\mingw64').... Looking for file 'C:\mingw64\bin\g++.exe' ...Yes.... Looking for folder 'C:\mingw64' ...Yes.... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder ...Yes ('C:\Program Files (x86)\Windows Kits\10\').... Looking for folder 'C:\Program Files\MATLAB\R2018a' ...Yes.... Executing command '"C:\Program Files\MATLAB\R2018a\bin\mbuild.bat" -getWin10SDKVersion' ...No.
It seems that MATLAB failed to find the compiler because the last line returned 'No'.
Best Answer