Silverfrost Forums

Welcome to our forums

PLato project

28 Jul 2008 2:13 #3603

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

28 Jul 2008 3:25 #3607

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.

5 Aug 2008 7:31 #3663

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

11 Aug 2008 8:48 #3686

'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.

11 Aug 2008 12:22 #3687

Quoted from PaulLaidler '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

12 Aug 2008 6:20 #3691

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.

12 Aug 2008 11:10 #3693

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

Ian

Please login to reply.