Silverfrost Forums

Welcome to our forums

ERROR: The executable does not exist

22 Jan 2015 7:15 #15386

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 :: name5 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]

22 Jan 2015 8:15 #15387

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

22 Jan 2015 1:47 #15393

Sir, I am using Plato IDE. Kindly guide me on how to use the command line and SLINK prog.obj

22 Jan 2015 3:06 #15396

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.

22 Jan 2015 6:49 #15399

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

22 Jan 2015 10:00 #15400

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

23 Jan 2015 4:48 #15402

Definitely I installed as a System Administrator. Give an hint on how to go about the troubleshooting.

Thanks

23 Jan 2015 8:16 #15403

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.

23 Jan 2015 5:00 #15413

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

Please login to reply.