Topic: Include files
Hi,
first I would like to thank Jeff for his support concerning the error with missing media in a "hidden" drive. With the 1.30 version this error disappeared.
I am just restoring an old FORTRAN program with uses the INCLUDE statement for parts of the code, mainly COMMON blocks like
>>>>>>>>>>>>>> begin of file c_ela.for
c ... c_ela.for
c
real*4
& mr (mn,mn) ,
& dr (mn,mn)
complex*8
& kr (mn,mn)
common /ela/
& kr ,
& mr ,
& dr
c
c ...
<<<<<<<<<<<<<<< end of file c_ela. for
This file is member of the project file and should be used in the following subroutine
subroutine ELASTO
c
include 'c_ela.for'
c
and so on.
I get the following error:
Open Watcom Make Version 1.9 (Built on May 17 2012)
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
"C:\Program Files (x86)\Simply Fortran\mingw-w64\bin\gfortran.exe" -c -o build\c_ela.o -m32 -Jmodules .\c_ela.for
Error: Unexpected end of file in '.\c_ela.for'
Error(E42): Last command making (build\c_ela.o) returned a bad status
Error(E02): Make execution terminated
* Complete *
What is my mistake? Are there restrictions in the use of the INCLUDE statement or special naming conventions for include-files?
Frederick