MATLAB 2018b cannot find Microsoft Visual C++ 2017 compiler when I run mex -setup
조회 수: 104 (최근 30일)
이전 댓글 표시
Installed MS Visual C++ 2017 compiler but it does not show up when I run mex -setup
댓글 수: 2
Kiran Felix Robert
2021년 12월 6일
What error message do you get, when you run the following command ?
mex -v setup
Could you please copy-paste the complete error message from MATLAB ?
답변 (1개)
Kiran Felix Robert
2021년 12월 9일
Hi Advait
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.
댓글 수: 4
Tamer Mellik
2024년 2월 26일
followed every step still matlab can't locate the microsoft visual c++ compiler. 2021b and VS 2017
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!