Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help writing with fortran

  1. Aug 29, 2012 #1
    Hi guys. I want to write fortran programs in eclipse. All I have done so far is install eclipse with Photran (which according to google should allow me to). What do I need to do now to be able to compile and run a sample code?

    I am trying to run this:

    program hello_world
    implicit none
    write(*,*) "hello world"
    end program hello_world

    also I have the error gcc not found in PATH

    I installed the g95 complier, but I'm not sure how to point the text editor there
    Last edited: Aug 29, 2012
  2. jcsd
  3. Aug 29, 2012 #2


    Staff: Mentor

    You need to add the directory that contains g95 to your PATH environmental variable.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook