View previous topic :: View next topic |
Author |
Message |
ElSiglo
Joined: 30 Jan 2012 Posts: 4
|
Posted: Mon Apr 16, 2012 11:15 am Post subject: Error when I run the executable |
|
|
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 |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Mon Apr 16, 2012 11:37 am Post subject: |
|
|
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 |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Mon Apr 16, 2012 6:03 pm Post subject: |
|
|
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 |
|
 |
ElSiglo
Joined: 30 Jan 2012 Posts: 4
|
Posted: Fri Apr 20, 2012 2:29 pm Post subject: |
|
|
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 |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Fri Apr 20, 2012 4:08 pm Post subject: |
|
|
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 |
|
 |
|