gfortran

Daniel Franke franke.daniel@gmail.com
Mon Jun 9 20:03:00 GMT 2008


2008/6/9 Paul, Brent S <bpaul@alionscience.com>:
>        I only installed gfortran so I would imagine that I would have
> to go get the c version as well.  I don't understand a lick of C, so I
> would have to find some C code on the web to see.  If someone thinks
> it's worthwhile then I'll try that, but I'm guessing C and Fortran
> should be mutually exclusive?  Or at least fail for the exact same
> reason...

gcc and gfortran share quite a lot as they are only front-ends to the
common (assembly) code generator. If gfortran doesn't work, but gcc
does, then something's wrong with gfortran in particular. If you can't
compile a hello-world with gcc, then there's something wrong with your
installation in general. Try:

$> cat test.c
int main() { return 1; }

$> gcc test.c && a.exe || echo "ok"

If you get an "ok" here, try FX' suggestion regarding gmp/mpfr, if not
... errrr ... :)

Regards

     Daniel



More information about the Fortran mailing list