Mex -setup compiler

6 ビュー (過去 30 日間)
Tan Edwin
Tan Edwin 2011 年 2 月 14 日
コメント済み: Walter Roberson 2017 年 2 月 14 日
My MATLAB Version is 7.11.0.584 (R2010b) and i am trying to run a simulink model on it.
But an error occur during the parsing phase: "Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds. Use 'mex -setup' to select a supported compiler."
So i t typed mex -setup in the MATLAB command prompt and it appears that there are no compiler available. So how do i get the compiler to allow my simulink model to run successfully?
Thanks
  2 件のコメント
nikhilsinghgangwar
nikhilsinghgangwar 2017 年 2 月 14 日
what after i have downloaded the compiler. its saying somnething about the location.Though i have already installed it
Walter Roberson
Walter Roberson 2017 年 2 月 14 日
nikhilsinghgangwar, which MATLAB version are you using, and exactly which compiler have you installed? Did you install VS Professional, VS Ultimate, VS Community, VS Express ?

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

採用された回答

Bruno Luong
Bruno Luong 2011 年 2 月 14 日
I guess you run Matlab on 64-bit platform (The factory LCC is the only available for 32). A free compiler is Microsoft Visual Studio Express. You need to download and install it.

その他の回答 (1 件)

Andreas Goser
Andreas Goser 2011 年 2 月 14 日
I also would guess this is that you need to install a C compiler. Here is the full list:
I heard people struggling with not correctly applying the right SDK for the MSVC Express editions, so my advice is to look at this very carefully.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by