forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Subroutine in INCLUDE file

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
TonyGrundy



Joined: 14 Mar 2005
Posts: 9

PostPosted: Thu Nov 30, 2006 4:08 am    Post subject: Subroutine in INCLUDE file Reply with quote

FTN 95. I have a subroutine in an include file. When compiled I get error 28, "missing END or CONTAINS statement".
CONTAINS not mentioned in help file. What should I be doing?

Also cannot get focus on output window when it contains error 28.



Tony Grundy
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5366
Location: Salford, UK

PostPosted: Thu Nov 30, 2006 6:11 am    Post subject: Subroutine in INCLUDE file Reply with quote

Tony

CONTAINS is a keyword in the Fortran 90 standard.

FTN95 thinks that you have omitted an END statement from your subroutine.

If the END statement is present then FTN95 has not handled your INCLUDE statement correctly.
Make sure that the whole of the subroutine appears in the INCLUDE file.
FTN95 will not be happy if, for example, you put the END statement in the main body rather than the INCLUDE file.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group