How can I fix a Fortran compiling error?

  • Topic: Fortran 
  • Thread starter mechb05
  • Start date
  • Tags Tags
    Error Fortran
4 replies · 3K views · last reply
mechb05
Messages
3
Reaction score
0
I Just finished installing gcc and SciTE .

when i try to run a basic code ..the following error is returned(refer attached file)
many thanks


PS:I have saved fortarn.properties file in the installation folder of scyntilla
 
Attachments
  • Screenshot of the SciTE editor showing a short Fortran 90 program named test with a WRITE statement, and a console error that 'lf95' is not recognized as a command, with exit code 1.
    Untitled.jpg
    15.2 KB · Views: 541
Mark44 said:
It appears to me that Windows doesn't know how to find your compiler. You need to add the directory path for the Fortran compiler to the path environment variable. Here's a link that might help if you don't know how to do this: http://www.computerhope.com/issues/ch000549.htm.


Hi Mark44
thanks for reply.

But the variable you are talking about is already set (refer the screenshot).

i think its something else.Can you suggest some other method of running fortran with good text editor as i am newbie...offcourse a freeone :P
 
Attachments
  • Windows System Properties Environment Variables dialog showing user variables for Bharat Thakur (PATH, TEMP, TMP) and system variables including OS, P_SCHEMA and Path set to C:\gcc\bin and other gcc directories.
    syntilla.jpg
    36.2 KB · Views: 558
I'm not convinced that you have the path variable set correctly. The screen shot was pretty small, so was hard to read. The 2nd item looks like C:\gcc\libexec\gcc\686pc...

Does this actually refer to a directory on your computer? The two gcc parts in the path seem odd to me.
 
Mark44 said:
I'm not convinced that you have the path variable set correctly. The screen shot was pretty small, so was hard to read. The 2nd item looks like C:\gcc\libexec\gcc\686pc...

Does this actually refer to a directory on your computer? The two gcc parts in the path seem odd to me.

Thanks MARK44

I somehow got it working by following a video on YOUTUBE