The old g77 FORTRAN compiler of GCC which has been replaced by gfortran since release 4.0.
Questions tagged [g77]
49 questions
8
votes
3 answers
How to find out which compiler was used: g77 or gfortran
I'm compiling library for a private project, which depends on a number of libraries. Specifically one of the dependencies is compiled with Fortran. On some instances, I've seen the dependency compiled with g77, on others I've seen it compiled with…

jbatista
- 2,747
- 8
- 30
- 48
3
votes
2 answers
Make double-precision default in g77, Fortran compiler
Is there an analog of the "-fdefault-real-8" gfortran (the GNU Fortran 95 compiler) option in g77 (the GNU Fortran 77 compiler)? This option sets the default real type to an 8-byte wide type.
I currently have code where single-precision arithmetic…

A. Rex
- 31,633
- 21
- 89
- 96
3
votes
5 answers
F77: problem to compile with g77 a program which was normally compiled with Absoft compiler
I am not a Fortran programmer (just a short experience), but I need to compile a program partly written in F77. Someone has compiled it with Absoft compiler before me, but now I need to repeat the procedure on another machine with g77. For Absoft,…

Andrei
- 10,918
- 12
- 76
- 110
3
votes
2 answers
Trouble compiling Fortran with g77
I'm attempting to compile some old Fortran code used at my job with g77. I'm new at Fortran and programming generally, and I'm trying to work through the all of the errors. This is one that g77 is returning:
afsirs.for: In subroutine…

Cfree
- 57
- 1
- 6
3
votes
2 answers
Determine which compiler built my LAPACK
I want to install the newest version of numpy (a numerical library for Python), and the version (v1.6.1) is not yet in the Ubuntu Oneiric repositories. When I went ahead to manually install it, I read in the INSTALL file that numpy needs to be built…

william_grisaitis
- 5,170
- 3
- 33
- 40
2
votes
1 answer
Relation of GNU f77/gfortran and f2c?
What is the relation of g77/gfortran and f2c today? Is there still development going on? Is one benefiting from the others advances (like bugs and performance)?
Who is developing f2c (if it's not done by the g77/gfortran developers)?
Thanks

Johannes Gerer
- 25,508
- 5
- 29
- 35
2
votes
1 answer
"DATA INT / 'STRING' /" problem when compiling with gfortran
I have some old (~1995) legacy fortran code which is compiled with g77 compiler and fails on gfortran.
The problem is in following lines (incompatible types conversion, character to integer):
INTEGER CKYAN
DATA CKYAN / 'KYAN' /
The variable…

Maxim Gonchar
- 23
- 3
2
votes
1 answer
gfortran Error: Nonnegative width required in format string at (1)
The code in question is this:
subroutine PG_TLab_Write(c30,r,d)
implicit none
character*30 c30,leftjust
real*4 r
integer*4 d,k
if (d.eq.0) then
write(c30,'(i30)') nint(r)
elseif (d.gt.0) then
write(c30,'(f30.)') r
else
…

Samuel Leathers
- 326
- 5
- 9
2
votes
1 answer
FORTRAN to C++ and C++ to FORTRAN Communication
I have a C++ application and FORTRAN application which are communicating via file. (Both direction)
FORTRAN application is writing data to file and C++ is reading the data from the file.
Now a new requirement has come wherein I have to directly…

StackIT
- 1,172
- 2
- 13
- 25
2
votes
0 answers
Building a FORTRAN DLL
I want to create a dll from following fortran77 code by using g77 compiler in Windows.
sample FORTRAN code
test.f
SUBROUTINE fsub (x)
INTEGER*4 x
x = x + 1
END
INTEGER*2 FUNCTION ffunc (y)
INTEGER*2 y
ffunc = y + 1
END
…

Sid
- 245
- 7
- 18
2
votes
0 answers
Issues making an executable with g77 on windows cygwin
I am having problems getting g77 to produce an executable file that will run on cygwin in MS Windows. The compiler produces a PE32 executable for MS Windows, but when I try to run the program I get a cannot execute binary file error.
Running MS…

captain_M
- 287
- 2
- 10
1
vote
0 answers
Problem with old code while installing Dock6
I'm trying to install Dock6 (version 6.9) on Fedora 35, I got the license from the website, opened the tarball and followed the manual instructions.
As per the instructions I've run the command ./configure gnu to create a config.h file which uses…

prah
- 11
- 1
1
vote
1 answer
How do I install g77 in ubuntu 20.04
I've been looking for a way to install g77 in ubuntu 20.04 but it seems it is not supported anymore and I can't find anywhere a way to do this. I need it to run some codes that required specifically g77. Is there any way to do this?

José Linares
- 11
- 1
- 2
1
vote
0 answers
FORTRAN operators on the left hand side
I'm compiling a G77/GNU FORTRAN code developed in Linux to work with Intel Fortran in Windows. I got a strange assignments in the code to modify the DO loop index such as I+1=M or I-1=N where I in the index of the DO loop. This is not accepted by…

Nghiem
- 19
- 2
1
vote
0 answers
g77: unrecognized option `-trapuv' f771: error: invalid option `ips2'
I am using g77 (gcc 3.4.6) in my fedora 20. I got compiler errors:
g77: unrecognized option `-trapuv'
f771: error: invalid option `ips2'
How can I solve this problem?
Also, if I want to use gfortran instead, what are the equivalent…

manojg
- 59
- 8