Fortran Programming. Fortran 90 Topic Overview. Installing Fortran Compiler. From CodeBlocks Attaching the compiler framework To attach the GNU Fortran 77 Compiler (G77) the following steps are required: Make a copy of the GNU GCC compiler as follows: 1.) 2.) 3.) Setup the compiler as follows: 1.) 2.) 3.) Important: Make sure the path environment is setup to really point a path that contains the Fortran compiler suite. Adding new Fortran file type It makes sense to add a new "Fortran Sources" filetype to have the Fortran source code files being seperated. Goto menu "Project" -> "Project tree" -> "Edit file types categories" Click on "Add" to add a new type of files Select "Fortran Sources" as group name Enter the following in the file-mask (without quotation marks): "*.f;*.f77;*.cmn;*.inc;" Click OK to close the dialog.
For your interest: "*.f;*.f77" are normally the default extensions for source code files, "*.cmn" is the extension for Fortran common-blocks and "*.inc" if often used as include file with e.g. variable declarations. Setting up Fortran projects 1.) Fortran 90 Practical Exercises. Modernizing Old Fortran in Fortran Wiki.