Re: Trying to compile a program



On Tue, 12 Dec 2006 14:47:05 +0000, Terry A Haimann wrote:

I have some source code I would like to compile & run under linux. It is
mostly in c and fortran. I believe this program comes from the Unix world.

This script is total rubbish, at least as far as Linux GCC is
concerned. It uses the ".c" or ".f" suffix to select the compiler;
this is not needed if you have the GCC C and FORTRAN compilers
installed because you can invoke either using the basic:

$ gcc -c foo.c

or

$ gcc -c foo.f

model. Just let GCC do the compiler selection for you.

Cheers
.



Relevant Pages

  • Re: Announcement: GCC 4.6.0 / GCC at Google Summer of Code
    ... (The test cases in the test suite are - of course - written in in Fortran - with some C for BIND(C).) ... The main interest from our side (current gfortran developers) is of course to complete the missing Fortran 2003/2008 features, though as written adding run-time argument checking or similar non-F03/08 items are also useful. ... As Steve mentioned, there is a GSoC page at GCC, which I believe is up to date. ... gcc/fortran - the Fortran compiler ...
    (comp.lang.fortran)
  • Re: help on ifort compiler
    ... But if you built them with the gcc C ... Fortran applications are no longer linked against a C++ runtime library ... If the Intel Fortran driver is used to link mixed ... to specify linking against the correct libraries: ...
    (comp.lang.fortran)
  • Re: Does gcc in Solaris 10 (x86) support Fortran ?
    ... for Fortran, ... I should have added my SPARC runs Solaris 10. ... It would be good to know if Solaris 10 on x86 supports compilation of Fortran, and ideally if that is true of all Solaris 10 releases on x86. ... I'm somewhat surprised Fortran is not included in the SPARC distribution of gcc. ...
    (comp.unix.solaris)
  • Re: Mac OS X and FORTRAN
    ... Mac OS X? ... Fortran to see if I like the language. ... It is gcc 4.2 ... commerical compilers will automatically work. ...
    (comp.lang.fortran)
  • Re: g95 versus gfortran
    ... One is to take a stable snapshot of the GCC parts, ideally from a well-debugged non-experimental branch, so that the Fortran parts are the only new things and one doesn't have to deal with updating the Fortran code to deal with changes in the other part of the compiler. ... It's even included as part of the official GCC source tree, which means that changes to GCC are immediately and automatically part of GFortran. ... Version 4.1.2 is the current release branch, which at this point is quite stable, but has a fairly incomplete Fortran compiler. ...
    (comp.lang.fortran)