Sponsored Content
Full Discussion: Fortran compile problem
Operating Systems Linux Fortran compile problem Post 302637591 by miriammiriam on Wednesday 9th of May 2012 04:06:00 AM
Old 05-09-2012
Data Fortran compile problem

Hello everyone,

I am trying to compile a code under fedora14.Kernel Linux 2.6.35.6-45fc14.i686-GNOME 2.32.0. I use f77,g77 and gfortran to compile but I get the same error all ways.

Code:
Unsupported OPEN control item at (^) -- ACTION=, ASSOCIATEVARIABLE=, BLOCKSIZE=, BUFFERCOUNT=, CARRIAGECONTROL=, DEFAULTFILE=, DELIM=, DISPOSE=, EXTENDSIZE=, INITIALSIZE=, KEY=, MAXREC=, NOSPANBLOCKS, ORGANIZATION=, PAD=, POSITION=, READONLY=, RECORDTYPE=, SHARED=, and USEROPEN= are not supported
simulps14.for:700: 
         open(unit=02,status='old',form='formatted',file='STNS',read only)        ^

and open statements are like this:

Code:
      open(unit=02,status='old',form='formatted',file='STNS',read only)
      rewind (02)
      call input2
      close(02)

What could be the reason of this problem? I have checked and some pages say that the problem could be solved by changing the code. In my case, since the code is nearly 10000 lines long, it is impossible for me to change it and I have a little knowledge about Fortran.

What should I do to compile the code? Should I try unix or sun??? Is that be the reason?

Thank you everyone!!
 

9 More Discussions You Might Find Interesting

1. Programming

Compile problem.

I am a newbie to unix environment and i am currently using bash. May i know how to compile a new c program. (1 Reply)
Discussion started by: alkyo
1 Replies

2. Programming

compile problem on aix

When compiling (a simple test program): #include <stdio.h> #include <sys/context.h> int main() { printf("Hello\n"); return 0; } on AIX 5.2 with gcc 3.2.2 from the IBM site I get the following error: /usr/include/sys/context.h:169: parse error before "sigset64_t"... (4 Replies)
Discussion started by: rein
4 Replies

3. AIX

Compile Problem on AIX5.3

Hello, I try to compile apt-rpm on a AIX box. AIX: AIX 5300-05-03 make : 3.81 CC= VAC 8 I get the follwing error: make: Entering directory `/home/root/apt-0.5.15lorg3/apt-pkg' source='contrib/cmndline.cc' object='contrib/cmndline.lo' libtool=yes \ DEPDIR=.deps depmode=none... (1 Reply)
Discussion started by: jbo
1 Replies

4. Programming

GNU GDB compile problem

I have to compile gnu-gdb 6.7 on HP-UX 11.11 with /usr/local/pa64/bin/gcc 64-bit compiler, but I'm having some problems during "make": ser-tcp.c: In function `net_open': ser-tcp.c:207: warning: passing arg 5 of `getsockopt' from incompatible pointer type make: *** Error 1 make: Leaving... (8 Replies)
Discussion started by: untamed
8 Replies

5. Linux

Fortran compile issue

I was given this program to work with and it was supposed to be simple for someone like me who knows nothing of Fortran or Unix. It comes with a makefile, so all I have to do is use the make command, then type ./blub to execute the program. A list of data should then appear in the fort.51 file. The... (1 Reply)
Discussion started by: Arjani
1 Replies

6. Debian

Program compile problem (glib pkg-config)

I need to compile a program which uses glib-2.0. I installed the package libglib2.0-0 but the configure script can't find it because the libglib package doesn't provide a .pc file which pkg-config looks for. How can I resolve this? Debian 6.0 (SPARC) (3 Replies)
Discussion started by: snorkack59
3 Replies

7. Programming

Problem with IF ELSEIF and GOTO statements in FORTRAN

Hi I am reading a book about Fortran 90 and I write the following code, to test my understanding of the first chapter. I have a problem with the last section of the code with deals with an IF, ELSEIF, and GOTO statements. Here is my Code PROGRAM sim ! This code is used to solve two... (3 Replies)
Discussion started by: faizlo
3 Replies

8. Programming

FORTRAN:Algortihmic Problem

Hi guys I am faced with this problem that I couldn't figure out yet, if you can point me to some direction that'll be of great help. So here's what I want to do. I have let's say 10000 files which contains same number of Z coordinates in each file. I have to find the distance of those... (6 Replies)
Discussion started by: saleheen
6 Replies

9. Shell Programming and Scripting

Problem trying to compile libXres

Hello. I recently tried to build libXres from the source and I am encountering issues when trying to build from two different manners. In the first I run the configure script with ./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/... (1 Reply)
Discussion started by: colt
1 Replies
PLOT(3F)																  PLOT(3F)

NAME
plot: openpl et al. - f77 library interface to plot(3X) libraries. SYNOPSIS
subroutine openpl() subroutine erase() subroutine label(str) character str*(*) subroutine line(ix1, iy1, ix2, iy2) subroutine box(ix1, iy1, ix2, iy2) Draw a rectangle and leave the cursor at ( ix2,iy2). subroutine circle(ix, iy, ir) subroutine arc(ix, iy, ix0, iy0, ix1, iy1) subroutine move(ix, iy) subroutine cont(ix, iy) subroutine point(ix, iy) subroutine linemd(str) character str*(*) subroutine space(ix0, iy0, ix1, iy1) subroutine clospl() DESCRIPTION
These are interface subroutines, in the library -lf77plot, allowing f77 users to call the plot(3X) graphics routines which generate graphic output in a relatively device-independent manner. The f77 subroutine names are the same as the C function names except that linemod and closepl have been shortened to linemd and clospl . See plot(5) and plot(3X) for a description of their effect. Only the first 255 character in string arguments to label and linemd are used. This library must be specified in the f77(1) command before the device specific graphics library; for example, to compile and load a FOR- TRAN program in prog.f to run on a Tektronix 4014 terminal: f77 prog.f -lf77plot -l4014 See plot(3X) for a complete list of device specific plotting libraries. SEE ALSO
plot(5), plot(1G), plot(3X), graph(1G) 4.3 Berkeley Distribution April 30, 1986 PLOT(3F)
All times are GMT -4. The time now is 12:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy