Silverfrost Forums

Welcome to our forums

Missing END error while converting MS Powerstation code

14 Jul 2008 6:36 #3454

Greetings,

While converting Microsoft Powerstation code I have a fixed format fortran program (MS Powerstation) with statement:

   include ''stdio.for'' 

the file for stdio.for is simply:

   integer CON,PRN,STDIN,STDOUT,STDERR,ERRCNT,ERRMAX
  common /stdio/ CON,PRN,STDIN,STDOUT,STDERR,ERRCNT,ERRMAX 

These integer constants are defined in a block data file. I then put this include in many, many subroutines throughout my 30,000 line program. When I compile, get missing END error. All files have .for extension. Using standard PLATO downloaded last week (July 2008), Any suggestions? I have many other include files I use like this one.

Thanks!

14 Jul 2008 7:46 #3455

It looks like you have added the include file to your project as a source file. Hence Plato is trying to compile the include file on its own and you get the missing END error.

Remove it as a source file and Plato will automatically added it as an 'include' file.

Please login to reply.