Silverfrost Forums

Welcome to our forums

Problem - Plato

8 Apr 2011 9:53 #8048

have created a simple program using Plato. The program is as below:

PROGRAM QuadraticEquation

REAL :: a REAL :: b REAL :: c a=333

print*, a

END PROGRAM QuadraticEquation

However, when I run, **'a' **does not appear. I just get a blank black screen saying 'Press RETURN to close window'

When I debug, I get a message:

'The program has terminated with error code of -1073741515'

Please help, I need to learn Fortran programming for a very important project.

Please help!!

8 Apr 2011 2:01 #8050

Please can anyone help? Eager!

8 Apr 2011 2:17 #8051

I don't know. When I compile and run your program it produces a window with the caption 'Output' containing 333.000 and a lot of white space. Which is what I would expect. This happens whether I run your exe by double-clicking it from within Explorer or by starting it from within Plato or from a command line. There's nothing wrong with your program. Not sure what else to suggest - sorry 😦 . How are you running your program?

8 Apr 2011 2:53 #8052

I ran it by going to the menu option *Build->Start Run *.

How do you run from the explorer, can u explain?

8 Apr 2011 2:56 #8053

When I try running using the run command, I get a message:

'The program can't start because salflibc.dll is missing from your computer.Try re-installing the program to fix the problem'

However, I have already re-installed twice since 2-3 hours.

Please help

8 Apr 2011 4:08 #8054

salflibc.dll is a DLL that is needed when compiling (i.e. when running FTN95.exe) and when running the resulting exe (i.e. the executable for your program).

You should check that salflibc.dll is in the folder that also contains FTN95.exe and then work out why this DLL is not 'visible'. Normally the folder that contains FTN95.exe is added to the environment PATH.

8 Apr 2011 10:07 #8055

Yes, salflibc.dll is in the folder that also contains FTN95.exe .

You said: * 'Normally the folder that contains FTN95.exe is added to the environment PATH.'*

How to do this?

I did get a message whilst installing that path is to be set manually.Can you please tell me how to set the path manually?

Again, please help and thanks for the help so far!

9 Apr 2011 6:51 #8056

The way this is done depends on your operating system. It would be simpler to uninstall, then when you install again, select the option to let the installer set the PATH.

9 Apr 2011 9:45 #8057

My operating system is Windows 7.

I uninstalled and re-installed but it says that the path has to be set manually.

Please help

9 Apr 2011 10:53 #8058

If this is not possible, please can you suggest some other means of downlooading and programming with Fortran 95?

I can give you a call (by phone) if it helps

9 Apr 2011 4:14 #8060

Typing 'Windows 7 environment path' into Google I get

http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx

which looks quite promising.

9 Apr 2011 5:04 #8061

Thanks a lot for all the help!

It worked!

Please login to reply.