How to compile both C and FORTRAN source files in a single call to MEX?

1 次查看(过去 30 天)
Hi, i need to compile both C and FORTRAN source files in a single call to MEX. My command is "mex -f ./mexopts.sh -v -O -output mexsepeli mexgateway_sepeli.c sepeli.F". But Matlab cannot run ans shows that "Cannot compile both C and FORTRAN source files in a single call to MEX." Would you mind telling me What i can do to come over this problem? Sincerely, Liu Ran
  1 个评论
dpb
dpb 2018-10-26
mex isn't that smart, unfortunately (I'll refrain from adding what I think of how it's been implemented in polite company).
You've got to go at it in two steps, fortunately, James, the chief resident guru outlined the process at Compiling C and Fortran

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fortran with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by