mex cannot find gccopts.sh

2 次查看(过去 30 天)
Victor
Victor 2014-1-24
I'm trying to set up mex in MATLAB to compile with gcc but it appears that the options file for gcc (gccopts.sh) does not exist. mex does not find it nor can i find it under User/.matlab/R2013a
>> 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 /Users/Victor/.matlab/R2013a 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 /Users/Victor/.matlab/R2013a.
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_R2013a.app/bin/mexopts.sh :
Template Options file for building MEX-files
0: Exit with no changes
Enter the number of the compiler (0-1):
Why don't my MATLAB have the gccopts.sh file and how can I get it?
  1 个评论
Simen
Simen 2014-2-11
I am having the same issue. Did you find a solution to this problem?

请先登录,再进行评论。

回答(1 个)

Ankitkumar Maddewad
Maybe you don't have minGW-w64 compiler installed on the system. check installing it from add-on.

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by