Silverfrost Forums

Welcome to our forums

Compile errors

10 Oct 2012 6:54 #10809

I am compiling the clearwin+ examples in Plato and the compile is failing. The errors appears to have some thing to do with the declaration of a variable in globals.ins that is declared as Character*128. The errors says does not understand.

Has anyone seen this or know what to do?

Thanks.

Michael

10 Oct 2012 7:24 #10811

You will need to look at globals.ins which, I assume, is one of your files. I do not recall this being a Silverfrost file.

You might get some help on this forum if you can show us the line of code that causes the failure.

10 Oct 2012 8:25 #10812

character128 information CHARACTER1024 url character*256 file integer buttonEnabled logical imageDownloaded common information, url, file, buttonEnabled, imageDownloaded

The above code is in the file globals.ins that is in the folder for the .Net online image viewer example. It seems that when I load any of the ftn95 files for the clearwin examples into Plato it sets a reference to this file.

When you build the expample in Plato you get an error saying it does not understand Character. If you remove the file then you get an error saying that the references are missing.

10 Oct 2012 9:31 #10813

Files with extension .ins are usually INCLUDE files. These should not be compiled. Only compile files that have extensions such as .for, .f90 or .f95 etc. Some where in these files you will find the code

INCLUDE 'globals.ins'

and at this point the given file is inserted into the program.

11 Oct 2012 12:28 #10820

I have not found where the file is referenced, other then it shows up under references in the project tree in Plato. The errors occur when I compile the expample file I am running in Plato. I notice that this does not occur if I use the batch file that came with the examples to complile them.

Maybe that might tell you more.

11 Oct 2012 3:33 #10823

You should remove globals.ins from the 'source' file section and the 'reference' section in the Project Explorer window.

If it is used then Plato will automatically put globals.ins in the 'include' file section.

Please login to reply.