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
Welcome to our forums
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
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.
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
'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.
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
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.
Might be a good idea for include files to be .inc or .ins, as you say that all files are .f95
Ian