How to compile this?
From: Bart Vandewoestyne (BartVandewoestyneNOSPAM_at_pandora.be)
Date: 02/12/04
- Next message: Håkan Lane: "Re: null pointer check on Linux"
- Previous message: Scott Czepiel: "Re: My subset selection software in Fortran"
- Next in thread: miller: "Re: How to compile this?"
- Reply: miller: "Re: How to compile this?"
- Reply: Kevin G. Rhoads: "Re: How to compile this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 12 Feb 2004 21:58:06 +0000 (UTC)
I would like to execute 'Algorithm 647' from the ACM Collected
Algorithms. The program is located at:
http://www.netlib.no/netlib/toms/647
When i download the source, and rename it to 647.f, and then try to
compile using the command:
$ f77 647.f
I get:
647.f: In program `testf':
647.f:4:
SUBROUTINE INFAUR(FLAG,DIMEN,ATMOST,QSS)
1
647.f:255: (continued):
CALL INFAUR(FLAG,DIMEN,ATMOST)
2
Too few arguments passed to `infaur' at (2) versus definition at (1)
[info -f g77 M GLOBALS]
This is weird... an 'official' algorithm having mismatch in arguments???
Did FORTRAN 77 allow this in some cases 'in the old days'?
Simply adding QSS as an argument at line 255 solves the problem party,
because then I get:
bartv@vonneumann:~/research/example_software/647$ f77 647.f
/tmp/ccxn8Xca.s: Assembler messages:
/tmp/ccxn8Xca.s:1980: Error: symbol `MAIN__' is already defined
/tmp/ccxn8Xca.s:4322: Error: symbol `MAIN__' is already defined
/tmp/ccxn8Xca.s:4949: Error: symbol `MAIN__' is already defined
which is probably due to the fact that there are 3 'PROGRAM's in that
file...
My question to the group is: how do i handle this thing? Can I compile
it without modifying it? Suppose it is necessary to add the QSS
argument at line 255, then how do I treat the fact of having more than
one PROGRAM statement in the source file?
By the way... the accompanying paper talks about the program being
compiled with the 'FTN 5.1' compiler...
The f77 compiler i use is:
GNU Fortran 0.5.25 20010319 (prerelease)
Thanks for the help,
Bart
-- Bart Vandewoestyne Bart.Vandewoestyne_at_pandora.be Naamsesteenweg 328 bus 201 GSM: +32 (0)478 397 697 B-3001 Heverlee ---------------------------------------------------------------------- "Share what you know. Learn what you don't."
- Next message: Håkan Lane: "Re: null pointer check on Linux"
- Previous message: Scott Czepiel: "Re: My subset selection software in Fortran"
- Next in thread: miller: "Re: How to compile this?"
- Reply: miller: "Re: How to compile this?"
- Reply: Kevin G. Rhoads: "Re: How to compile this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|