View previous topic :: View next topic |
Author |
Message |
Mike Cheek
Joined: 09 Jul 2008 Posts: 11 Location: Houston, TX
|
Posted: Sat Feb 13, 2010 12:02 am Post subject: Structures and Records use in Powerstation Fortran code |
|
|
Hi, I've been converting my Microsoft Powerstation Fortran 77 program over under Plato. Been going fairly smooth until I hit this problem. I yielded to temptation (many years ago) and with Powerstation Fortran I used a non standard feature: Structures and Records. The Plato compiler doesn't like this. Is there a way for the compiler to accept this extension? Or do I need to do a rewrite? - Thanks for all your help.
Example of use:
structure /xyz/
real a
real b
end structure
record /xyz/mystuff
mystuff.a = 1.0
mystuff.b = 2.0 _________________ Mike Cheek |
|
Back to top |
|
 |
IanLambley
Joined: 17 Dec 2006 Posts: 506 Location: Sunderland
|
Posted: Sat Feb 13, 2010 1:14 am Post subject: |
|
|
Re-write to:
type xyz
real a
real b
end type
type(xyz) mystuff
mystuff%a = 1.0
mystuff%b = 2.0
You might consider obtaining a conversion program or write one yourself.
The microsoft structure is the same as the DEC VAX Fortran |
|
Back to top |
|
 |
|