Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Fortran 6 Porting

Status
Not open for further replies.

rhhaney145

Programmer
Nov 18, 2006
2
US
Please Help,

I am new to Fortran and have been given a Fortran program to translate to Windows XP using Compaq Visual Fortran6.6 and am having some difficulty. The original Fortran program was written in Fortran90 and runs fine on the IRIX64 OS - which it was compiled on, but when I try and compile the files in Compaq Visual Fortran6.6 for Windows XP I get the following error:

Error: This is not a DEC Fortran module file. [NEW_TYPES]

A snippet of the code which is being compiled looks like the following:

program compose_2d

use new_types <- This is where my error is occuring

implicit none

include 'read.h'
include 'cg_assem_diagpre.h'
include 'lcoords.h'
include 'clump.h'
...

Is there a work-around for this using Visual Fortran6.6?

Thanks in advance for any help/hints.
 
The order of compilation matters. Try building the new_types module first.
 
Thank you xwb.

When I did what you suggested it worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top