フィルターのクリア

COMPILE C CODE IN MATLAB

19 ビュー (過去 30 日間)
Leon
Leon 2012 年 5 月 9 日
I am trying to compile c code in for the DGradient function http://www.mathworks.com/matlabcentral/fileexchange/298879, I am using a mac (10.7.3). The steps I have done:
1) mex -setup 2) mex DGradient.c
I get the following error:
/Applications/MATLAB_R2009b.app/bin/mex: line 1107: gcc-4.0: command not found /Applications/MATLAB_R2009b.app/bin/mex: line 997: gcc-4.0: command not found
mex: compile of ' "DGradient.c"' failed.
??? Error using ==> mex at 221 Unable to complete successfully.
Any help is appreciated!
/Thanks
  1 件のコメント
Jan
Jan 2012 年 5 月 9 日
Has the setup been successful?
Unfortunately I do not have Matlab for MacOS, such that I cannot provide a compiled version.

サインインしてコメントする。

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 5 月 9 日
See this previously answered question about the same issue.

カテゴリ

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