How can I solve the issue related to matlab compiler?

조회 수: 5 (최근 30일)
AKHIL NATH
AKHIL NATH 2015년 9월 13일
댓글: Walter Roberson 2015년 9월 13일
I am using matlab R2013a 64-bit version in windows 8.1. When i tried to simulate .m file,i got an error.The error is "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler".How can i solve this?

답변 (3개)

Steven Lord
Steven Lord 2015년 9월 13일
What happened when you tried using "mex -setup" as the error message suggests?

Walter Roberson
Walter Roberson 2015년 9월 13일

You need some special steps to install SDK 7.1 on Windows 8. See https://support.microsoft.com/en-us/kb/2717426


Chetan Rawal
Chetan Rawal 2015년 9월 13일
Akhil,
As the error suggests, you need to install a C-compiler to use some products. This is not installed by default. Try installing a free "mcc compiler" (google for it to download and install). Then use the "mex -setup" command in MATLAB to connect your newly installed Compiler to MATLAB. This should fix the issues you're facing.
Chetan
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 9월 13일
mcc is not a supported compiler that would be detected by mex -setup

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

카테고리

Help CenterFile Exchange에서 Troubleshooting 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