MATLAB 2018b cannot find Microsoft Visual C++ 2017 compiler when I run mex -setup
91 views (last 30 days)
Show older comments
Advait Thakre on 3 Dec 2021
Commented: Walter Roberson on 23 Jun 2022
Installed MS Visual C++ 2017 compiler but it does not show up when I run mex -setup
Kiran Felix Robert on 9 Dec 2021
By looking at the output from "mex -v -setup", the issue is caused by the Windows registry entry not pointing to the correct installation folder. Since we have stopped relying on the registry entry from Visual Studio 2019, we should not see such issues with VS 2019 and later versions of VS.
To resolve this issue for Visual Studio 2017 Professional, please reinstall (following the install instructions) in "C:\Program Files (x86)\Microsoft Visual Studio\2017" and run "mex -v -setup" in MATLAB.
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler 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!