(please wrap your lines in future)

On Fri, Dec 05, 2003 at 11:37:31AM +1100, Gerard Blacklock wrote:
> I have two fortran files which have the .PRN extension

Windows puts a .prn extension when you 'print to file'.

> So my first problem is : i am not sure what fortran
> version these files are - is there a way which one can
> distinguish between fortran 50, 51, 77, 90 and 95??

How old are they?  Anyway, g77 should do what you want.
Use 'ci -l' occasionally between edits as you mangle them
into compilable state.

> Ideally i would like to translate these scripts into a
> language which is more user friendly (for me) like matlab,
> has anyone had any success converting old fortran scripts
> into other languages??

Ugh.  Good luck; I expect that they would have to be very
plain fortran.  Get them compiled with g77 first.
Only then should you try anything fancier.

> [EMAIL PROTECTED]:~/belfast$ perl f77toM.pl ebel.for
> Can't modify reference constructor in list assignment at f77toM.pl line 465, near 
> ");"
> Execution of f77toM.pl aborted due to compilation errors.

Sounds like a perl version problem.  You would have to
take this up the author of f77toM.

If you get stuck compiling with g77 you can send fragments
of the source and your compiler errors to me.

Another free fortran compiler is f2c from bell labs.
(google for it -- there may well be a dpkg for it.)


Regards,
Matt

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to