View previous topic :: View next topic |
Author |
Message |
BillJohnson
Joined: 31 Aug 2011 Posts: 30 Location: Connecticut
|
Posted: Wed Dec 14, 2011 6:31 am Post subject: Include Statements Problems |
|
|
I am trying to compile the ASME 1997 FORTRAN Steam Table source code with the Silver Frost Compiler. These FORTRAN source file also include files with a ".inc" extension and within each of the ".for" extension files they add these include files with the following syntax:
include 'ntol.inc'
include 'nstmcon.inc'
include 'nuconv.inc'
When the compiler runs within Visual Studio 2010, for example it is throwing the following errors:
Error 10 INCLUDE file 'C:\data\VisualBasic\ASME_1997\steamTablesFORTRAN\nstmcon.inc' cannot be opened C:\data\VisualBasic\ASME_1997\FORTRAN Source\HCL.FOR 37
Stating that it cannot open the .inc include file.
Does anyone know what the problem is?
Kind Regards,
Bill |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Dec 14, 2011 8:46 am Post subject: |
|
|
The error report shows that the path to the include file does not match with the path to the source file. The Fortran source code indicates that the include file is in the same folder as the source file unless you have used some mechanism to get FTN95 to use a different folder for the include files (by using /INCLUDE on the command line for example). |
|
Back to top |
|
 |
|