How to Compile and Run Fortran Programs in Eclipse?

  • Context: Fortran 
  • Thread starter Thread starter rhimmelblau
  • Start date Start date
  • Tags Tags
    Fortran Writing
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
rhimmelblau
Messages
7
Reaction score
0
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:
Physics news on Phys.org
rhimmelblau said:
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
You need to add the directory that contains g95 to your PATH environmental variable.