View Full Version : g77 fortran compiler
enricoc
Oct 5, 2006, 09:16 AM
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
Mitthrawnuruodo
Oct 5, 2006, 09:38 AM
The g77 compiler provided by FINK seems to be PPC only, so you might try the evaluation version of Intel's Fortran compiler for Mac OS (http://www.intel.com/cd/software/products/asmo-na/eng/compilers/fmac/267426.htm).
rtharper
Oct 5, 2006, 09:46 AM
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
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?
iMeowbot
Oct 5, 2006, 10:13 AM
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?
The GCC supplied by Apple omits it. There are third-party builds (http://hpc.sourceforge.net/) that include it.
Eraserhead
Oct 5, 2006, 11:50 AM
I believe G95 (http://ftp.g95.org/) 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.
ChrisA
Oct 5, 2006, 05:34 PM
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
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
rtharper
Oct 6, 2006, 03:06 PM
The GCC supplied by Apple omits it.
Lame. Why would they do that?
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.