This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]