Fortran Gfortran Xcode MacOS Catalina 10.15.7

Respected All,

I am new user in this field. with macOS Catalina 10.15.7 and with Xcode 12.5 (12D4) i want to use GFortran for running the Fortran program.
kindly suggest GFortran version suitable and commands and running procedure.

regards

Vikas Katoch

Hi Vikas,

I am unfamiliar with xcode and its integrations with gfortran. If you want to use an IDE I recommend you try vscode and brew install gfortran. Is there something specific you need from xcode?

I think recent versions of the xcode command line tools will work with several of the recent versions of gfortran. If you mean the xcode IDE, then I’m unsure about those combinations. I use homebrew to install and update both gfortran and the command line tools. Also, homebrew now installs the flang and the lfortran compilers, in case you want to experiment beyond gfortran.