mex cannot find gccopts.sh

1 view (last 30 days)
Victor
Victor on 24 Jan 2014
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 Comment
Simen
Simen on 11 Feb 2014
I am having the same issue. Did you find a solution to this problem?

Sign in to comment.

Answers (1)

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

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!