how can I get matlab aware of a installed compiler

13 ビュー (過去 30 日間)
Pietro Soccio
Pietro Soccio 2016 年 9 月 27 日
編集済み: Michelle Wu 2016 年 9 月 29 日
I'm using matlab 2016b and I need to compile C files, I installed a suggested compiler: mingw-w64-install.exe in a folder without spaces "c:\mingw-w64" but when I execute from matlab command line "mex -setup" I get >> mex -setup c Error using mex No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit http://www.mathworks.com/support/compilers/R2016b/win64.html.

採用された回答

Michelle Wu
Michelle Wu 2016 年 9 月 29 日
編集済み: Michelle Wu 2016 年 9 月 29 日
It is my understanding that you installed the recommended compiler MinGW 4.9.2 C/C++, yet still got the “No supported compiler or SDK was found” error when executing command “mex -setup”.
You may refer to this MATLAB Answers post by the MathWorks Support Team:
If this does not resolve the issue, check out the doc page for some general troubleshooting steps to compile MEX files with MinGW-w64.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTroubleshooting in MATLAB Compiler SDK についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by