--- In fortran@yahoogroups.com, "dlyzxl" <dlyzxl@y...> wrote:
> Dear friends:
>
> I am trying to compile downloaded mopac7 source code (many files)
in
> Sparc solaris system. Tons of errors come up. A little beginning is
> copied directly.
>
> Can any one suggest me how so many errors are caused? by system? by
> compiler? etc.......
>
There are two problems with the example code, but these are
probably only the tip of the iceberg.
i. The $ format descriptor means write the line without a newline
(Carriage return, linefeed etc) at the end. It is non-
standard, but is supported by most Fortran systems. Most (not
all) of those do not require a comma to separate the $ from
the next token. Your Solaris compiler either doesn;t accept $
(there is an alternative and standard mechanism in Fortran 90)
or requires the comma.
ii. The Fortran standard requires that a COMMON block (except the
un-named common) is the same size wherever it is referenced.
Many Fortran compilers do not impose this restriction. Most
Unix compilers do. Yours does.
The underlying problem is that the code was written for a fairly
permissive system like VMS or CVF, and won't run on a strict Fortran
90 or Fortran 77 system. We have a tool, WinFPT (See
http://www.simcon.uk.com) which will convert the code. Please
contact us if you would like to use it.
Best wishes, and good luck!
John.
john_collins@...