The data statement is indeed out of order, but moving it doesn't fix things.
Program compiled OK and ran with -O0 (is -O equivalent to -O1?).  But output
tex file is wrong; lots of fermata's etc that are not in the input.

I don't understand the warnings.  The variables mentioned are in a common
block.  They are not used in the subroutine mentioned, but they are used
elsewhere.

--Don 

> -----Original Message-----
> From: Reinhard Katzmann [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 03, 2000 2:53 PM
> To:   MuTeX Mailing List
> Cc:   Simons, Don
> Subject:      Re: about g77
> 
> 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
> 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
> 
> ...
> 
>    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
> 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
> 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

Reply via email to