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
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 Center 和 File Exchange 中查找有关 Fortran with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!