mex cannot find gccopts.sh

2 ビュー (過去 30 日間)
Victor
Victor 2014 年 1 月 24 日
回答済み: Ankitkumar Maddewad 2021 年 2 月 26 日
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
Ankitkumar Maddewad 2021 年 2 月 26 日
Maybe you don't have minGW-w64 compiler installed on the system. check installing it from add-on.

カテゴリ

Help Center および File ExchangeWrite 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