Top "Gfortran" questions

gfortran is the GNU Fortran compiler, part of GCC.

"/usr/bin/ld: cannot find library"

This is my first time trying to compile FORTRAN code using a makefile. The OS is Ubuntu 12.04 LTS 64 bit. I …

gcc linker fortran ld gfortran
Undefined reference to `omp_get_max_threads_'

I'm getting the following errors trying to compile a project: (fortran, using gfortran) undefined reference to `omp_get_max_threads_…

gcc openmp gfortran
Fortran 90 - "Segmentation fault - invalid memory reference" with scalable 3D array

I have compiled a fortran 90 program with gfortran which builds a scalable 3D array in a way I want. Upon …

arrays segmentation-fault fortran fortran90 gfortran
Getting fortran runtime error: end of file

I have recently learned how to work with basic files in Fortran and I assumed it was as simple as: …

runtime fortran gfortran
How to pass allocatable arrays to subroutines in Fortran

The following code is returning a Segmentation Fault because the allocatable array I am trying to pass is not being …

arrays fortran fortran90 gfortran
What flags do you set for your GFORTRAN debugger/compiler to catch faulty code?

I think I won't find that in any textbook, because answering this takes experience. I am currently in the stage …

debugging deployment fortran gfortran fortran90
Reading a string with spaces in Fortran

Using read(asterisk, asterisk) in Fortran doesn't seem to work if the string to be read from the user contains …

string fortran fortran90 gfortran fortran77
Building R package and error "ld: cannot find -lgfortran"

I'm trying to install the package lars. Ubuntu 11.04 Natty 64-bit. From building I get: * installing *source* package âlarsâ ... ** libs gfortran …

r ubuntu gfortran
gfortran for dummies: What does mcmodel=medium do exactly?

I have some code that is giving me relocation errors when compiling, below is an example which illustrates the problem: …

memory-management fortran x86-64 gfortran
How can gfortran tell if I am compiling f90 or f95 code?

I understand gfortran can compile f90 or f95? How does it know which one it is compiling? Also can it …

fortran fortran90 gfortran fortran77