🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50285

Using f2c+gcc to compile "Object oriented FORTRAN"--need help

#50285
From: Uppie
Date: Sun, 31 Oct 1993 10:01
29 lines
1973 bytes
I'm porting a large software package that contains FORTRAN code
to Linux.  Linux doesn't have a FORTRAN compiler, so
I'm using f2c, which of course then calls gcc to compile the translated
code.  For the most part, things are working.  My problem is when I
try to compile modules written in "Object-oriented FORTRAN", which I
am not familiar with.

The problem is that f2c outputs C code that, at times, 
has a different number of paramters for functions than the original FORTRAN
code, and then gcc gives errors and stops compiling
when parts of the program attempt to call the function with too many
and/or too few arguments (f2c is also changing the number of arguments
in the calls to the functions).

Is there a way to get gcc to compile this code with a command line
argument?  (I read the man pages, but couldn't find it.)

This is really more of an f2c question I think, but I can't find any
newsgroups for f2c, so I'm asking for help here (or a direction to
go to find help).

Is anyone here familiar at all with f2c and this OOF stuff?

Any/all help appreciated.

--
Jeff Uphoff -- "Uppie"         | "The secret to good teaching is sincerity. 
uppie@vt.edu                   | As soon as you learn to fake that, you've got
juphoff@uppieland.async.vt.edu | it made."
Technical Details
Message-ID: <2b02di$5ee@solaris.cc.vt.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!vtserf.cc.vt.edu!solaris.cc.vt.edu!uppieland!juphoff

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,248a7571ac0ccbcc,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-10-31 03:01:36 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!vtserf.cc.vt.edu!solaris.cc.vt.edu!uppieland!juphoff
From: juphoff@uppieland.async.vt.edu (Uppie)
Newsgroups: gnu.gcc.help
Subject: Using f2c+gcc to compile "Object oriented FORTRAN"--need help
Date: 31 Oct 1993 10:01:22 GMT
Organization: Virginia Tech, Blacksburg, Virginia
Lines: 29
Message-ID: <2b02di$5ee@solaris.cc.vt.edu>
NNTP-Posting-Host: uppieland.async.vt.edu
Keywords: f2c FORTRAN object-oriented