Questions tagged [g77]

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

49 questions
0
votes
0 answers

Error "open:No error apparent state:unit 68" when reading a file in g77

I am trying to read data from a file and I have received the following error c:/work/readdata.exe open:No error apparent state:unit 68 named data 1108.prn lately writing direct unformatted external IO abnormal program termination Is anyone…
Evan
  • 373
  • 2
  • 3
  • 15
0
votes
1 answer

How to use include in gfortran?

I am trying to rewrite a Makefile for gfortran instead of g77. If I include the line FCFLAGS += -I./include then it looks for a .mod file that I do not have, but if I omit that line it can't find a file it needs in the ./include directory. Not…
0
votes
1 answer

"make" in a Fortran library results in "Command not found" error

I have Ubuntu 10.04 and gcc version 4.4.3 I have been trying to install this library called SUPER_LU and there are some codes in it are written in Fortran. Typing "make" at the top level directory gives me the following…
Sanjay
  • 79
  • 1
  • 3
0
votes
1 answer

Writing to file with no leading spaces at the Start of Line and No Blank End Line

Hi All Fortran Lovers, I am trying to write to a file which outputs three variables as program main integer N, u parameter(u=20) open (u, FILE='points.dat', STATUS='new') do 10 i= 1, 100 write(u,100) i,…
user3051677
  • 147
  • 14
0
votes
1 answer

Linking libblas.dll with g77.exe

I downloaded libblas.dll win32 version, "Prebuilt dynamic libraries using Mingw" from https://icl.cs.utk.edu/lapack-for-windows/lapack/#libraries and used a g77 blas sample "blas3_d_prb.f" from…
user3051677
  • 147
  • 14
0
votes
1 answer

Fortran issue: Argument of "xx" is one type at (2) but is some other type at (1)

I have a few "Argument is one type at (1) but is some other type at (2) errors coming up in my program, but I'm not sure how to modify it. Is there some other way of writing the arguments than what I've done? Ps. I compile in g77. But I also tried…
JadeChee
  • 89
  • 1
  • 17
0
votes
2 answers

Compiling three files fortran 77 "Line too long"

I'm trying to compile three files with g77. One of the files, a subroutine for the main file, returns Jades-MacBook-Pro:Jade jadecheclair$ g77 -c atmsetup.for Line too long as of (?) [info -f g77 M LEX] I'm very new to fortran and couldn't find…
JadeChee
  • 89
  • 1
  • 17
0
votes
1 answer

Fortran compiler for mac to read program

I'm using the g77 compiler (on terminal I just type g77 filename.for ) on a Mac. It can't read my fortran program and I can't modify the program (very old program, not mine, and I really just need the output from it). Any suggestion for another…
JadeChee
  • 89
  • 1
  • 17
0
votes
1 answer

gcc error on a code can be properly compiled by cc and g77

There is an example C code linking to two static libraries. This code is compiled via a Makefile. The makefile generates first of all an object file from source file, and then covert it to an executable file via the following commands. In addition,…
Masood
  • 685
  • 2
  • 8
  • 16
0
votes
1 answer

Syntax error in DATA statement

I have this code in a Fortran project: ITEGER IV, IY DIMENSION IV(NTAB,IDEPTH) DIMENSION IY(IDEPTH) DATA IV,IY /(IDEPTH*NTAB)*0,IDEPTH*0)/ Attempting to compile the project generates this error: DATA IV,IY /(IDEPTH*NTAB)*0,IDEPTH*0)/ …
brightwellcd
  • 77
  • 1
  • 7
0
votes
1 answer

No output of ident tool on compiled file by gfortran

I use ident tool to extract RCS keyword strings from both source file and compiled file. It certainly works for source codes, and also works for C compiled output by GCC as well as fortran compiled output by G77. $ gcc -o c.out test.c $ ident test.c…
Masood
  • 685
  • 2
  • 8
  • 16
0
votes
1 answer

g77 compiling errors (cannot find crt1.o, crti.o, -lgcc_s)

I really need some help. I'm trying to compile and execute some programs for my Thesis. The problem is, I never used Fortran before, so I'm blindly relying on the documentation....it said to use a few commmands to do the work, specifically setenv…
Carlo
  • 1,321
  • 12
  • 37
0
votes
1 answer

Errors while installing a Fortran 77 program

adwaita@adwaita-HP-2000-Notebook-PC:~/Downloads/netcdf-fortran-4.4.1/v2.9$ make install f77 -c gwrdge.f gwrdge.inc: In function `luserd': gwrdge.inc:32: STRUCTURE /gwridge/ 1 2 Unrecognized statement name at (1) and…
Praveen
  • 139
  • 1
  • 10
0
votes
1 answer

Random number generator for g77

I'm currently using a Fortran code that uses: double precision random random() here is a sample code showing what random number generator I'm trying to work with: program rand M=128 do j=1,M r=random() write(*,*)j,r end do stop …
user3460758
  • 957
  • 7
  • 15
  • 25
0
votes
1 answer

Confusing stack behavior in G77-compiled program

I've got a mixture of C++ and Fortran 77, all compiled with G77. It is mostly C++, but it calls the ODE-solver DVERK, which then calls back to a global C function to get the derivative (declared with __stdcall). It's all been working fine, until I…
Mike Dunlavey
  • 40,059
  • 14
  • 91
  • 135