No supported compiler was found.

조회 수: 151 (최근 30일)
Nicolas Bourbaki
Nicolas Bourbaki 2019년 4월 8일
댓글: Walter Roberson 2020년 12월 1일
Upon trying to compile a file using mex, I receive the following error message:
Error using mex
No supported compiler was found.
I installed Visual Studio 2017 with support for C++ and actually
mex -setup C++
lets me choose my compiler.
Which additional diagnostics could I run in order to pin down the problem?
  댓글 수: 6
Nicolas Bourbaki
Nicolas Bourbaki 2020년 12월 1일
편집: Nicolas Bourbaki 2020년 12월 1일
You would run
mex -setup C++
This lists a couple of options in case it finds a suitable compiler like the following:
mex -setup:'C:\Program Files\MATLAB\R2020b\bin\win64\mexopts\msvcpp2015.xml' C++
Walter Roberson
Walter Roberson 2020년 12월 1일
By the way, Visual Studio does not install the C compiler by default.

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2019년 4월 8일
If you just run
>> mex -setup
it should present you with the compilers that Matlab can actually see. That should provide a clue.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by