View previous topic :: View next topic |
Author |
Message |
stenlou
Joined: 24 Jun 2008 Posts: 30 Location: Germany and Denmark
|
Posted: Mon Jul 28, 2008 3:13 pm Post subject: PLato project |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Mon Jul 28, 2008 4:25 pm Post subject: |
|
|
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 |
|
|
stenlou
Joined: 24 Jun 2008 Posts: 30 Location: Germany and Denmark
|
Posted: Tue Aug 05, 2008 8:31 am Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Mon Aug 11, 2008 9:48 am Post subject: |
|
|
"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 |
|
|
stenlou
Joined: 24 Jun 2008 Posts: 30 Location: Germany and Denmark
|
Posted: Mon Aug 11, 2008 1:22 pm Post subject: Re: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Aug 12, 2008 7:20 am Post subject: |
|
|
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 |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Tue Aug 12, 2008 12:10 pm Post subject: |
|
|
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 |
|
|
|