Compiler Error: Unable to locate compiler while running sumulation

조회 수: 3 (최근 30일)
satendra kumar
satendra kumar 2013년 10월 5일
답변: satendra kumar 2013년 10월 5일
I have Already installed Visual studio 2012. With all of its components including Visual C++ 2012. But still i am getting the following error- "Error matlab Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."
  댓글 수: 1
Image Analyst
Image Analyst 2013년 10월 5일
편집: Image Analyst 2013년 10월 5일
You forgot to tell us what it said when you issued the "mex -setup" command like it instructed you to do. Please show that information also. For some reason, either you didn't run that (like it told you to), or you are running it and it's not finding VS2012 for some reason.

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

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 5일
편집: Azzi Abdelmalek 2013년 10월 5일
To select your compiler, type in Matlab command windows
mex -setup

satendra kumar
satendra kumar 2013년 10월 5일
Thanks pal, but Done that already, But Still getting the same error.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by