mex cannot find gccopts.sh
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Ankitkumar Maddewad
2021-2-26
Maybe you don't have minGW-w64 compiler installed on the system. check installing it from add-on.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!