Matlab命令mex -setup找不到C语言编辑器

조회 수: 6 (최근 30일)
treeroot
treeroot 2012년 8월 31일
댓글: Zihao 2013년 11월 24일
我使用的是mac版R2009B,输入mex -setup
>> mex -setup
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mex -setup' command selects an options file that is
placed in ~/.matlab/R2009b and used by default for 'mex'. An options
file in the current working directory or specified on the command line
overrides the default options file in ~/.matlab/R2009b.
To override the default options file, use the 'mex -f' command
(see 'mex -help' for more information).
The options files available for mex are:
1: /Applications/MATLAB_R2009b.app/bin/gccopts.sh :
Template Options file for building gcc MEX-files
2: /Applications/MATLAB_R2009b.app/bin/mexopts.sh :
Template Options file for building MEX-files via the system ANSI compiler
0: Exit with no changes
Enter the number of the compiler (0-2):
--------------------------
没有自己安装的gcc 4.16也没有Xcode?
有大牛知道如何解决。

답변 (2개)

Honglei Chen
Honglei Chen 2012년 8월 31일
Did you install gcc or Xcode? If not, you need to install them. If you did, you need to check if they are on your path.
  댓글 수: 1
Zihao
Zihao 2013년 11월 24일
how can I check? In matlab command window, or terminal?

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


Ken Atwell
Ken Atwell 2012년 9월 12일
R2009b supported Xcode version 3.1:
You will not be able to find this older version on the App Store, but maybe you can find it in the Apple Developer's site, likely behind a developer log-in.

카테고리

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