g77 fortran compiler

Discussion in 'Mac Programming' started by enricoc, Oct 5, 2006.

  1. enricoc macrumors newbie

    Joined:
    Oct 5, 2006
    #1
    Hi, I'm new to MacBook Pro and I've seen that no g77 compiler is still available. I have to use some fortran subroutines within C++ program. In the past, I used to create a fortran lib which was called together with f2c in the g++ compilation stage of the C++ main program.
    Is there anyone who can help me?
    Thanks in advance Enrico
     
  2. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #2
  3. rtharper macrumors regular

    rtharper

    Joined:
    Sep 6, 2006
    Location:
    Oxford, UK
    #3
    Correct me if I'm wrong, for I'm no FORTRAN programmer (and if there's any deity that likes me I never will be) but doesn't GCC have full support for FORTRAN?
     
  4. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #4
    The GCC supplied by Apple omits it. There are third-party builds that include it.
     
  5. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #5
    I believe G95 allows compilation of Fortran 77 code as well as Fortran 95 code. It is also totally free, though the code will run faster with the Intel compiler mentioned above.
     
  6. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #6
    Look for f2c i the "fink" project. You could try and build a GCC from source with FORTRAN support enabled but that is a project in itself. f2c is an easy way out. You can run f2c by hand or integrate f2c into your Makefile
     
  7. rtharper macrumors regular

    rtharper

    Joined:
    Sep 6, 2006
    Location:
    Oxford, UK
    #7
    Lame. Why would they do that?
     

Share This Page