View previous topic :: View next topic |
Author |
Message |
Malik
Joined: 21 Jan 2015 Posts: 4
|
Posted: Thu Jan 22, 2015 8:15 am Post subject: ERROR: The executable does not exist |
|
|
I am beginner in FORTRAN programming, I ran the following simple code:
program ex1
write (*,*) 'Hello there'
end program ex1
I had these error:
==============
ERROR: The executable does not exist
96cb mov [ebp-0x7c],esi
Compiling and linking file: hello_there.f95
Access violation:
The instruction at address 004196c8 attempted to read from location 0b31f20c
00419426 loadDll(<ptr>char,int) [+02a2]
004028ed loadObject(<ptr>char) [+0291]
004259d9 loadCatenatedObject(<ptr>char) [+02ac]
00402c17 loadNamedObjectFile(<ptr>char) [+0143]
00420708 findDLL(<ptr>char) [+01b0]
004208d0 loadStandardDLLs(void) [+01b2]
0040766a parcelUpExe(void) [+0857]
0040c049 parseCommandLine(<ptr><ptr>char) [+03ab]
eax=0b322c6b ebx=0b3225f4 ecx=0b32191c
edx=00000000 esi=000005dc edi=0b31f208
ebp=0370eb08 esp=0370ea54 IOPL=0
ds=002b es=002b fs=0053
gs=002b cs=0023 ss=002b
flgs=00010203 [CA OP NZ SN DN NV]
0360/7820 TSTK=7 [ ]
004196c8 mov esi,[edi+0x4]
0041
The 2nd example:
program Year
implicit none
!this is comment
integer yrbirth, currentYr, age
character :: name*5
write(*,*) 'Enter ur name'
read(*,*) name
write(*,*) 'Enter ur age now'
read(*,*) age
print*,'Enter ur current yera'
read(*,*) currentYr
yrbirth = currentYr - age
stop
end program year
=================
I had this same error:
ERROR: The executable does not exist
ile: age_ex.f95
C:\Users\DAWAHNIGERIA\Documents\F95_code\age_ex.F95(3) : warning 242 - Variable YRBIRTH has been given a value but never used
Access violation:
The instruction at address 004196c8 attempted to read from location 0508f20c
00419426 loadDll(<ptr>char,int) [+02a2]
004028ed loadObject(<ptr>char) [+0291]
004259d9 loadCatenatedObject(<ptr>char) [+02ac]
00402c17 loadNamedObjectFile(<ptr>char) [+0143]
00420708 findDLL(<ptr>char) [+01b0]
004208d0 loadStandardDLLs(void) [+01b2]
0040766a parcelUpExe(void) [+0857]
0040c049 parseCommandLine(<ptr><ptr>char) [+03ab]
eax=05092c6b ebx=050925f4 ecx=0509191c
edx=00000000 esi=000005dc edi=0508f208
ebp=0370eb08 esp=0370ea54 IOPL=0
ds=002b es=002b fs=0053
gs=002b cs=0023 ss=002b
flgs=00010203 [CA OP NZ SN DN NV]
0360/7820 TSTK=7 [ ]
004196c8 mov esi,[edi+0x4]
004196cb mov [ebp-0x7c],esi
=======================================
Kindly help me out please!
[/b] |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Thu Jan 22, 2015 9:15 am Post subject: |
|
|
This appears to be a failure within the linker SLINK but it is very strange.
Are you using Plato to build your executable etc.?
If you know how to use a command line and your file name is say prog.f95, try the commands...
FTN95 prog.f95
then
SLINK prog.obj |
|
Back to top |
|
|
Malik
Joined: 21 Jan 2015 Posts: 4
|
Posted: Thu Jan 22, 2015 2:47 pm Post subject: |
|
|
Sir, I am using Plato IDE. Kindly guide me on how to use the command line and SLINK prog.obj |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Thu Jan 22, 2015 4:06 pm Post subject: |
|
|
You need to open a "Command Prompt" window and type the commands on the "Command line".
However, on reflection I suspect that your copy of SLINK.exe in the FTN95 download has got corrupted. Or maybe there something else in your system that is preventing SLINK from working.
You could try re-installing the Silverfrost package or maybe trying everything on a different machine. |
|
Back to top |
|
|
Malik
Joined: 21 Jan 2015 Posts: 4
|
Posted: Thu Jan 22, 2015 7:49 pm Post subject: |
|
|
Thanks for your mediate response.
I have done as you said: I made a new download FTN95 Personal Edition (FTN95PE) version 7.10 from "http://www.silverfrost.com/32/ftn95/ftn95_personal_edition.aspx" version. Those codes compiled without those errors, good news! However, I am unable to see the display of the output. For instance:
program io
real :: x,y,z
print *, 'enter the values x,y and z'
read *, x,y,z
print *, 'the values you typed are for z,y,x are: ',z,y,x
end program io
It compiled, but instead of showing "print" values at the new plato window, it plato window like command environment showing " Press RETURN to close window..." It doesn't prompt for any value nor it displays output result. This have re-occurred on many trials on various examples. How may I fixed this?
My system OS is Window 7 64bit Home Premium
Thanks |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Thu Jan 22, 2015 11:00 pm Post subject: |
|
|
Malik,
Your first example hello.f95 is used to test the compiler was successfully installed. This test has clearly failed and the problem is with the install procedure you have used. You need to investigate why this occurred.
Did you have sys-admin rights when installing ?
John |
|
Back to top |
|
|
Malik
Joined: 21 Jan 2015 Posts: 4
|
Posted: Fri Jan 23, 2015 5:48 am Post subject: |
|
|
Definitely I installed as a System Administrator. Give an hint on how to go about the troubleshooting.
Thanks |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Fri Jan 23, 2015 9:16 am Post subject: |
|
|
If you can build and run this program in Plato and you get "Press RETURN to close the window" then you should also see before it "enter the values of x,y,z".
Maybe this output has scrolled out of view. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Fri Jan 23, 2015 6:00 pm Post subject: |
|
|
It looks to me, Malik, that your problem could be fixed in about 10 minutes with face to face instruction. Where are you? In the unlikely event that you are somewhere within about 30 miles SW of London, I'll help.
Because FTN95 can be run in several different ways, you will get conflicting advice from a variety of people here, all trying to be helpful, but just confusing matters.
Eddie |
|
Back to top |
|
|
|