Mex Visual Studio C/C++ compiler

조회 수: 74 (최근 30일)
Ethel Marquer
Ethel Marquer 2020년 1월 9일
답변: Chidvi Modala 2020년 1월 21일
Hello,
Matlab doesn't find an installed compiler even though microsoft compiler file cl.exe exists in:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64
When I am running the command:
mex -setup -v
I get this output:
Looking for compiler 'Microsoft Visual C++ 2017 (C)' ...
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 15.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 15.0 ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 15.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\').
... Executing command 'set "vcroot=C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress"&for /f "delims= " %a in ('type "C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt"') do @if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\%a\bin\HostX64\x64\cl.exe" call echo %vcroot%' ...No.
Did not find installed compiler 'Microsoft Visual C++ 2017 (C)'.
Since visual Studio Express is not installed on my computer, I don't understand why "set vcroot" points to
C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress
I think it should be
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional
instead
Thanks,

답변 (1개)

Chidvi Modala
Chidvi Modala 2020년 1월 21일
You can find answer to a similar question here

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by