replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Error when I run the executable
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 

Error when I run the executable

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



Joined: 30 Jan 2012
Posts: 4

PostPosted: Mon Apr 16, 2012 11:15 am    Post subject: Error when I run the executable Reply with quote

Hi folks,

I'm after compiling my file and it only has 4 warnings regarding unused statement numbers, but other than that it's fine. However, as soon as I run the executable I get this error box:

Quote:
Run-time Error
*** Error 128, File does not exist

main - in file rory.for at line 29 [+00a8]



Am I doing something wrong? Is there anyway of running the executable without getting this error?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Apr 16, 2012 11:37 am    Post subject: Reply with quote

You need to find out why the executable can not find the file.
Does it exist?
Do you need the full path, not just the local name?
Back to top
View user's profile Send private message AIM Address
davidb



Joined: 17 Jul 2009
Posts: 560
Location: UK

PostPosted: Mon Apr 16, 2012 6:03 pm    Post subject: Reply with quote

Are you running the executable from within Plato?

If so make sure that your System PATH variable includes an entry for the silverfrost compiler. From memory, you will be able to compile and link without setting this variable, but won't be able to run programs without it.

It doesn't always get setup properly by the installer even when you tick the option to do so (I have a weird security setup here though so this might just be me!) so best to check its set and set it manually if not.

With the default install, add the following to PATH.

C:\Program Files\Silverfrost\FTN95
_________________
Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl
Back to top
View user's profile Send private message
ElSiglo



Joined: 30 Jan 2012
Posts: 4

PostPosted: Fri Apr 20, 2012 2:29 pm    Post subject: Reply with quote

I managed to get it working, it turned out to be a character statement. Cheers for the advice!

I'm now having more issues with it whereby I run the program and for some reason my input file and output file have no data in them (i.e. the data is completely cleared with the input file and no data appears in the output file). I don't suppose this happens with anyone else?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Apr 20, 2012 4:08 pm    Post subject: Reply with quote

There are options in a Fortran OPEN statement that can clear a file before reading. What does you OPEN (for reading) statement look like?
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 -> Support 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