gfortran free-from

1 view (last 30 days)
Volker
Volker on 30 Apr 2012
Hi!
Does anyone know how I can get Matlab to compile mex-files in Fortran free-form / f90 code using the gfortran 4.3 compiler. I know that using ifortran there is a compiler switch you can turn off in the mexopts.sh file. But I cannot find and equivalent in my mexopts.
Thanks!

Answers (1)

Walter Roberson
Walter Roberson on 30 Apr 2012
Use the -ffree-form option, or the .f90 or .F90 file extension.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!