Error using mex No supported compiler was found. MATLAB2018b Windows10
Hi all,
I am trying to use compiler using mex code,
so I installed following
・Microsoft Visual C++ 2015-2019 x64 Redistributable
・Windows 10 SDK
and I got following error
>> mex -v -setup
Verbose mode is on.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER15’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER16’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘MinGW64 Compiler (C)’ …
… Looking for environment variable ‘MW_MINGW64_LOC’ …No.
Did not find installed compiler ‘MinGW64 Compiler (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2013 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2013 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2015 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2015 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2017 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2017 (C)’.
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit
https://www.mathworks.com/support/compilers.
>> mbuild -setup -v
‘mbuild’ requires MATLAB Compiler SDK.
I installed windows 10 SDK first and then installed Microsoft Visual C++ 2015-2019 x64 Redistributable
what am I missing?Hi all,
I am trying to use compiler using mex code,
so I installed following
・Microsoft Visual C++ 2015-2019 x64 Redistributable
・Windows 10 SDK
and I got following error
>> mex -v -setup
Verbose mode is on.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER15’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER16’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘MinGW64 Compiler (C)’ …
… Looking for environment variable ‘MW_MINGW64_LOC’ …No.
Did not find installed compiler ‘MinGW64 Compiler (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2013 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2013 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2015 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2015 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2017 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2017 (C)’.
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit
https://www.mathworks.com/support/compilers.
>> mbuild -setup -v
‘mbuild’ requires MATLAB Compiler SDK.
I installed windows 10 SDK first and then installed Microsoft Visual C++ 2015-2019 x64 Redistributable
what am I missing? Hi all,
I am trying to use compiler using mex code,
so I installed following
・Microsoft Visual C++ 2015-2019 x64 Redistributable
・Windows 10 SDK
and I got following error
>> mex -v -setup
Verbose mode is on.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER15’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER16’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘MinGW64 Compiler (C)’ …
… Looking for environment variable ‘MW_MINGW64_LOC’ …No.
Did not find installed compiler ‘MinGW64 Compiler (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2013 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2013 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2015 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2015 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2017 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2017 (C)’.
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit
https://www.mathworks.com/support/compilers.
>> mbuild -setup -v
‘mbuild’ requires MATLAB Compiler SDK.
I installed windows 10 SDK first and then installed Microsoft Visual C++ 2015-2019 x64 Redistributable
what am I missing? mex, compiler, sdk, windows10 sdk MATLAB Answers — New Questions