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 

PLato project

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



Joined: 24 Jun 2008
Posts: 30
Location: Germany and Denmark

PostPosted: Mon Jul 28, 2008 3:13 pm    Post subject: PLato project Reply with quote

When I try to create a new project, Plato-3 will in most cases put some of my source code under 'includes'. Why is that?

Only when I open an old PLato2 project, then things works okay

Sten
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Mon Jul 28, 2008 4:25 pm    Post subject: Reply with quote

If you add a source file to a project then Plato will automatically list any INCLUDE files in the relevant part of the Project Explorer window.

You must not add INCLUDE files (as source files) to the project.
Back to top
View user's profile Send private message AIM Address
stenlou



Joined: 24 Jun 2008
Posts: 30
Location: Germany and Denmark

PostPosted: Tue Aug 05, 2008 8:31 am    Post subject: Reply with quote

I still dont understand. I have a number of existing source files. I want to create a project and highlight all off these source files and goes 'open'. Some goes under source files and other goes under includes. Why is that?

Sten
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Mon Aug 11, 2008 9:48 am    Post subject: Reply with quote

"Source" files are those that you want to compile using FTN95 (say).
These should be added to your project.
If you have INCLUDE statements in your source files then then the associated files should not be added to your project because Plato will do this for you and put them in a different section of the Project Explorer window.

Source files normally have the extension .for or .f90 etc.
Include files are normally given the extension .ins or .inc.
Back to top
View user's profile Send private message AIM Address
stenlou



Joined: 24 Jun 2008
Posts: 30
Location: Germany and Denmark

PostPosted: Mon Aug 11, 2008 1:22 pm    Post subject: Re: Reply with quote

PaulLaidler wrote:
"Source" files are those that you want to compile using FTN95 (say).
These should be added to your project.
If you have INCLUDE statements in your source files then then the associated files should not be added to your project because Plato will do this for you and put them in a different section of the Project Explorer window.

Source files normally have the extension .for or .f90 etc.
Include files are normally given the extension .ins or .inc.


all my files are .f95 that is whay I am confused. Plato rypically takes 4 files and add these under source and then the rest under include.

Sten
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Tue Aug 12, 2008 7:20 am    Post subject: Reply with quote

All I can suggest is that you remove all of the source files from your project and start again, adding one file at a time and compiling that one file after adding it to the project.

If any files cannot be removed then do this manually by editing the .ftn95p file for your project.

You have not said if there are any INCLUDE statements in your code.
If you have INCLUDE statements then the corresponding files must not be added to the project. Plato will do this for you.
Back to top
View user's profile Send private message AIM Address
IanLambley



Joined: 17 Dec 2006
Posts: 490
Location: Sunderland

PostPosted: Tue Aug 12, 2008 12:10 pm    Post subject: Reply with quote

Might be a good idea for include files to be .inc or .ins, as you say that all files are .f95

Ian
Back to top
View user's profile Send private message Send e-mail
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