R2011b에서 MATLAB Function 블록을 사용하려고합니다. 프로그램을 실행하려고하면 다음과 같은 오류가 발생합니다.Matlab 함수 블록 용 컴파일러 R2011b
Stateflow 및 MATLAB Function 블록에 필요한 C 컴파일러를 찾을 수 없습니다.
'mex -setup'을 사용하여 지원되는 C 컴파일러를 선택하십시오.
내가 선택하든 컴파일러>> mex -setup Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011b/win64.html Please choose your compiler for building MEX-files: Would you like mex to locate installed compilers [y]/n? n Select a compiler: [1] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker) [2] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker) [3] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [4] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker) [5] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker) [6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker) [7] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [8] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) [9] Microsoft Software Development Kit (SDK) 7.1 [10] Microsoft Visual C++ 2005 SP1 [11] Microsoft Visual C++ 2008 SP1 [12] Microsoft Visual C++ 2010 [13] Microsoft Visual C++ 2010 Express [0] None Compiler: 1 Warning: The default location for Intel C++ compiler is: "C:\Program Files (x86)\Intel\ComposerXE-2011" but either that directory does not exist or the configuration is invalid. Use C:\Program Files (x86)\Intel\ComposerXE-2011 anyway [y]/n? y Please verify your choices: Compiler: Intel C++ 12.0 Location: C:\Program Files (x86)\Intel\ComposerXE-2011 Are these correct [y]/n? y Error: Microsoft Visual Studio 2008 SP1 Professional Edition was not found by mex -setup. The Microsoft Visual Studio 2008 SP1 Professional Edition linker is required to build Intel C++ MEX-files. Please make sure that Microsoft Visual Studio 2008 SP1 Professional Edition is installed properly. Error using mex (line 206) Unable to complete successfully.
, 내가 같은 오류가 발생합니다 :
내가 mex -setup
일을하려고, 나는 다음과 같은 출력을 얻을. 어떤 컴파일러를 선택해야합니까? 아니면 또 다른 문제가 있습니까?
해야 할 일은 MEX **에 유효한 컴파일러 **를 배치시켜야한다는 것입니다. 아니오 (** n **)를 선택하면 Windows 용으로 알려진 모든 가능한 컴파일러가 나열됩니다. 예 (** y **)를 선택하고 실제로 ** 설치되어있는 컴파일러를 알려주십시오. – rayryeng
says - 지원되는 SDK 또는 컴파일러가이 컴퓨터에서 발견되지 않았습니다. –