NickFort
Technical User
- Jun 10, 2010
- 113
Hi all,
I'm pretty new to Fortran (only dabbled in it a bit last year), but Google isn't terribly forthcoming with answers. I'm sure I'll be posting plenty of questions here, but my first one isn't related to programming, as such.
How are GCC and gfortran related? I ask this, because on where I got gfortran, there are a number of offers for Windows binaries, and the MinGW build is suggested. There are four bullets in that section; one of these leads to and the other to
Here's where my confusion comes in. I installed the former, and it comes with g++, gcc and g77. Now, as far as I can gather, the only way those can compile Fortran is with g77, and only Fortran 77 at that. I, however, am dealing with F95. The second link I gave is an installer which installs gfortran, and can compile F95 as well as F77, and probably most/all of the older versions. Those two installers appear to install completely different compilers.
So, why does the gfortran page point to MinGW, when -- as far as I can see -- gfortran isn't included in it? How is GCC related to gfortran?
Thanks!
N.F.
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
I'm pretty new to Fortran (only dabbled in it a bit last year), but Google isn't terribly forthcoming with answers. I'm sure I'll be posting plenty of questions here, but my first one isn't related to programming, as such.
How are GCC and gfortran related? I ask this, because on where I got gfortran, there are a number of offers for Windows binaries, and the MinGW build is suggested. There are four bullets in that section; one of these leads to and the other to
Here's where my confusion comes in. I installed the former, and it comes with g++, gcc and g77. Now, as far as I can gather, the only way those can compile Fortran is with g77, and only Fortran 77 at that. I, however, am dealing with F95. The second link I gave is an installer which installs gfortran, and can compile F95 as well as F77, and probably most/all of the older versions. Those two installers appear to install completely different compilers.
So, why does the gfortran page point to MinGW, when -- as far as I can see -- gfortran isn't included in it? How is GCC related to gfortran?
Thanks!
N.F.
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.