Why has Matlab stopped recognizing the installed Compiler?

조회 수: 3 (최근 30일)
SM
SM 2013년 3월 28일
Everything was working and I was able to generate C code from a Simulink model just fine, but today, I get the following error:
An installed compiler was not detected. Certain simulation modes, as well as host-based coder builds require that a compiler be installed. Please install one of the supported compilers for this release as listed at:
http://www.mathworks.com/support/compilers/R2011a/win64.html
MATLAB must be restarted after the compiler is installed.
I am running 64 bit Windows 7 OS.
I am running Matlab R2011a (64 bit).
I have installed Visual C++ 2010 express.
I have installed Windows SDK 7.1
Inside Matlab, I have run 'mex -setup,' selected the Microsoft Visual C++ Compiler that it finds, and entered 'y' to save the information.
I have tried every possible combination of installing, uninstalling, re-installing Matlab, Visual C++ 2010 express, and the Windows SDK 7.1.
Why would mex -setup work for choosing the compiler but then fail to recognize that it has in fact been set up (especially given that it worked previously)?
  댓글 수: 1
Matt J
Matt J 2013년 3월 28일
편집: Matt J 2013년 3월 28일
Inside Matlab, I have run 'mex -setup,' selected the Microsoft Visual C++ Compiler that it finds, and entered 'y' to save the information.
The error message told you to restart MATLAB after installing the compiler. Did you do that, too?

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

답변 (0개)

카테고리

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