Embedded MATLAB Function や Stateflow を含むモデルを64 bit 版MATLABで実行するとエラーが発生するのはなぜですか?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 25 Oct 2013
Edited: MathWorks Support Team
on 24 Feb 2021
Embedded MATLAB Functionブロックが含まれるモデルを 64bit 版 MATLAB で実行すると、以下のエラーダイアログが表示されます。
ERROR: Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds. Use 'mex -setup' to select a supported compiler.
Accepted Answer
MathWorks Support Team
on 1 Mar 2021
Edited: MathWorks Support Team
on 24 Feb 2021
上記エラーは、64 bit 環境に対応するコンパイラが設定されていない場合に発生します。
Embedded MATLAB Function ブロックや Stateflow チャートを含むモデルは、実行前に一旦ビルドされます。
なお、32bit 版 MATLAB では LCC コンパイラが付属していますが、LCC コンパイラは32 bit対応のコンパイラのため、64 bit 版 MATLAB では提供されていません。
64bit 版 MATLAB 上でコンパイラを設定していない場合には、下記 URL よりサポートされているコンパイラを参照してください。
・サポートされるコンパイラとその互換コンパイラ – Release 2010a
ご利用のバージョンが異なる場合は、ページ左のナビゲータより「過去のリリース(英語)ーサポートされるコンパイラ」を選択してください。
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!