How to make Visual Studio 2013 visible to Matlab 2018a

3 ビュー (過去 30 日間)
Matt J
Matt J 2020 年 12 月 1 日
回答済み: Matt J 2020 年 12 月 2 日
I have installed Visual Studio 2013 Professional under Windows 10 and I have successfully used it to write, compile, and execute a simple "Hello World" C++ program. Therefore, I think I can say with some confidence that the Visual Studio 2013 C++ compiler is available on my machine.
I would now like Matlab 2018a to be able to access this compiler through MEX, however, I obtain
>> mex -setup 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.
I know this is not a matter of VS 2013 being unsupported by Matlab 2018a. The table here says it is supported. What can I do to make the Visual C++ 2013 compiler visible to mex()?

採用された回答

Matt J
Matt J 2020 年 12 月 2 日
Well, restarting Matlab did not help, but rebooting the computer did.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by