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 

Compile errors

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



Joined: 10 Mar 2009
Posts: 23
Location: USA

PostPosted: Wed Oct 10, 2012 7:54 pm    Post subject: Compile errors Reply with quote

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


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

PostPosted: Wed Oct 10, 2012 8:24 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
CompuPayMike



Joined: 10 Mar 2009
Posts: 23
Location: USA

PostPosted: Wed Oct 10, 2012 9:25 pm    Post subject: Reply with quote

character*128 information
CHARACTER*1024 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.
Back to top
View user's profile Send private message Send e-mail
PaulLaidler
Site Admin


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

PostPosted: Wed Oct 10, 2012 10:31 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
CompuPayMike



Joined: 10 Mar 2009
Posts: 23
Location: USA

PostPosted: Thu Oct 11, 2012 1:28 pm    Post subject: Reply with quote

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


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

PostPosted: Thu Oct 11, 2012 4:33 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
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