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.
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 8 日
mex -v -setup
can help diagonse problems.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction 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