MATLAB 2017a unable to detect MS Visual C++ 2017 compiler
Show older comments
Please help with this compiler issue in MATLAB 2017a.
I have both MATLAB 2017a & MS Visual Studio 2017 installed (see attached About screenshots)


Running mex -setup -v in MATLAB results in...

As you can see, the registry entry 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' is found and system variables are successfully set.
Ultimately, the compiler is not found.
This bug fix ... https://www.mathworks.com/support/bugreports/1487958 does nothing to fix the problem.
I am out of ideas. Might this be a compiler bit-ness problem? Please HELP!
Here is OS info...

3 Comments
Jan
on 22 Jan 2019
"As you can see, the registry entry 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' is found and system variables are successfully set."
I do not think so. The log text contains (what a pitty that you have posted it as a screenshot, that I cannot copy&paste it...):
Looking for registry setting '[...]' ... No
The "No" means, that these keys are not found. So I cannot see, that the entry is found.
Lee Harder
on 22 Jan 2019
Jan
on 22 Jan 2019
Ah, now we have a 'Yes', which I cannot find in the screen shot:
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 15.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\').
Did you install the 64-bit compilers? In the SDK7.1 it was required to select them manually, as far as I remember.
Answers (1)
Look at the list of supported compilers:
There you find the hint that 2017a requires a patch: https://www.mathworks.com/matlabcentral/answers/335092-can-i-use-microsoft-visual-studio-2017-with-matlab
The solution explained on the bugreport is not trivial: https://www.mathworks.com/support/bugreports/1487958 . So are you really sure, that this does not help in your case?
Categories
Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!