Questions tagged [g77]

The old g77 FORTRAN compiler of GCC which has been replaced by gfortran since release 4.0.

49 questions
1
vote
2 answers

How to install the GNU Fortran 77 compiler or g77 on Ubuntu 14.04

I have a library which needs g77 compiler. I found few methods online; but each failed. Here is summary of two of my efforts: 1) I downloaded the packages, untar it and $ sudo ./install.sh Selecting previously unselected package…
Garima Singh
  • 1,410
  • 5
  • 22
  • 46
1
vote
2 answers

Mixed programming: Calling FORTRAN from C

I have to do a proof of concept on calling FORTRAN subroutines from C/C++. I don't know what I am in right direction, please guide me.... What I did is... I wrote the following FORTRAN code INTEGER*4 FUNCTION Fact (n) INTEGER*4 n INTEGER*4 i,…
StackIT
  • 1,172
  • 2
  • 13
  • 25
1
vote
1 answer

The Make and Shell Command Option in g77

What do the make and shell option mean in g77? For example, if I have the following script in my Makefile: FC = g77 FFLAGS = -O2 -mno-cygwin LDFLAGS = CD = cd LN = ln LNFLAGS = -s MAKE = /bin/make RM = rm RMFLAGS = -f SHELL = /bin/sh Does this mean…
Graviton
  • 81,782
  • 146
  • 424
  • 602
1
vote
0 answers

f2py: limit.h file missing in numpy in Windows

I’m having trouble compiling some FortranIV code using f2py and the g77 compiler. I need to do this to call some very old code written in Fortran to an already existing Python module. I have gcc installed through MinGW but I’m not sure if that makes…
1
vote
0 answers

f77 code in gfortran - library call

I've inherited an old f77/g77 program from a previous researcher, but have very little Fortran experience. I've worked through most of the syntax conversion in the file, but I'm running into an issue where the old file calls a (deprecated?) library…
Dustin Wheeler
  • 314
  • 2
  • 14
0
votes
1 answer

g77 version 3.2 creates large object file with the option -finit-local-zero

I'm working with a legacy + academic + numerical fortran-77 code that requires g77 3.2.x in order to compile and run successfully ... I'm using that compiler on Red Hat Linux 9 for i386 One of those fortran-77 files defines a subroutine with lots of…
Yudle Joza
  • 335
  • 1
  • 2
  • 7
0
votes
1 answer

Using DLLs in g77

I'm using the old g77 compiler (http://people.tamu.edu/~matthewmccleskey/g77.html) but can't seem to find out how to use external DLLs in my code. Is it even possible, or would I have to get a newer compiler? I have both DLL and LIB file.. The…
Kols
  • 83
  • 6
0
votes
1 answer

Real vs. Integer in Fortran

I have a program which loops over one variable and computes a value at each step: program cpout implicit none !declarations integer, parameter :: dp = selected_real_kind(15) ! kind value for double precision …
astay13
  • 6,857
  • 10
  • 41
  • 56
0
votes
0 answers

g77 compiler cannot find -lgcc_s

I am trying to compile a model which is written in FORTRAN 77. I am not able to make the link for g77. I am using Ubuntu 20.04.3 LTS. I am getting the below error /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status make: *** [exe]…
0
votes
0 answers

interfacing g77 and free pascal

I have forced a free-pascal object to almost-work with a g77 main. The problem is that the g77 loader does not load a pascal library, so any attempt to insert writeln in the pascal code fails because FPC-IOCHECK, fpc_get_output .. are not found.…
0
votes
0 answers

g77 : ld: warnings on version-min, and on object file

I need help compiling old legacy fortran with g77 : (1) The system on OS X 10.12.6, XCode 9.2, and g77 -v returns "Reading specs from /usr/local/lib/gcc/i686-apple-darwin8.8.1/3.4.0/specs Configured with: ../gcc-3.4.0/configure…
JPGConnolly
  • 1,320
  • 1
  • 8
  • 5
0
votes
1 answer

How to correct "gfortran can't find path" in VIsual studio code settings?

I have recently downloaded MinGw and g77 compiler for Fortran and it is based in my root directory. I also installed visual studio code to go with it. After installing extensions (related to fortran) in the text editor, there have been pop-ups that…
0
votes
1 answer

make g77 command not found

I am trying to make a project: https://www.cs.virginia.edu/stream/FTP/Code/ it reports: make: g77 command not found. I saw this line in Makefile: FF = g77 Can I change 'g77' here to something else to compile in the current OS, ex: Ubuntu 18.04?
GreenTea
  • 769
  • 1
  • 10
  • 36
0
votes
1 answer

Error while trying trying to run make command

I am trying to install a program and when I run make or make -f Makefile (following the installation instructions) I get the following output: g77 -O5 -Wall -c prep_output.f -o prep_output.o dyld: Symbol not found: ___keymgr_global Referenced…
pchar
  • 1
  • 1
0
votes
2 answers

Recompiling an old Fortran program and getting this error

The section of code looks like this; DO i = 1 , no2 + 1 IF ( Isign.EQ.1 ) THEN Ans(i) = fft(i)*Ans(i)/no2 ELSEIF ( Isign.EQ.-1 ) THEN IF ( ABS(Ans(i)) .EQ. 0.0 ) & PAUSE ' deconvolving at responce zero in convlv' …