On Thu, Feb 03, 2000 at 11:53:02PM +0100, Reinhard Katzmann wrote:
> Hi Don!
>
> I have now tried to compile the code with f2c, and I get several
> errors when trying that: f2c -Nn802 -Nx400 pmx218.f
>
> g1etnote:
> Error on line 1088 of pmx218.f: Statement order error: declaration after DATA
Yes, the program does not obey the standard statement ordering
Declarations
COMMMON
DATA
EQUIVALENCE
There may be a type declaration after a data statement.
Simply put it before the data statement and it will pass.
> Warning on line 2817 of pmx218.f: local variable relacc never used
> Warning on line 2817 of pmx218.f: local variable midicrd never used
> Warning on line 2817 of pmx218.f: local variable nmidcrd never used
> Warning on line 2817 of pmx218.f: local variable numchan never used
> Warning on line 2817 of pmx218.f: local variable notmain never used
Tidy up. This is the same as in C, when you don't use local
variables, but it is harmless.
>
> ...
>
> addmidi:
> Error on line 15113 of pmx218.f: Statement order error: declaration after DATA
>
> ...
>
> The g77 compiled fine as I told you, but even though I used -O
g77 is lax WRT to standard fidelity.
> option it crashes on my system.
>
> Any more information ?
>
> > On Thu, Feb 03, 2000 at 11:01:18AM -0800, Simons, Don wrote:
> > > Christoph Kukulies wrote
> > >
> > > Still, I can't completely stifle my curiosity about the g77 problems. Is
> > > there a utility out there that checks FORTRAN code for f77 compliance?
> >
> > The best test is to run it through f2c. f2c *is* nothing else than the
> > f77 'authority', believe me.
> >
> > But I believe the problem may be with the C code or C compiler when you
> > are getting a segfault. (as the different results from using various
> > -O flags show).
>
> No, this is not logical, the test was made with g77, and g77 does not
Yes, I forgot for the moment.
Send me the whole stuff, I will try to compile it under both, g77 and f2c
and will try to pinpoint the problem.
> produce C code, f2c on the other hand compiles version 210 without
> problems and the executable does not crash while g77 verison of both
> 210 and 218 seem to crash (no difference here whether compiled with
> a -O option or not). My f2c version OTOH does not compile pmx 218.
>
> Greets,
>
> Reinhard Katzmann
> --
> E-Mail: [EMAIL PROTECTED]
>
> Current Projects: Linux-Installation RH6.1 (90% finished)
> Java-DB and -Interface for Pincity
> Bach & H�ndel Trio Sonatas
--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]