Help writing with fortran

  • Fortran
  • Thread starter rhimmelblau
  • Start date
  • #1

Main Question or Discussion Point

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:

Answers and Replies

  • #2
33,106
4,800
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.
 

Related Threads for: Help writing with fortran

Replies
1
Views
3K
Replies
5
Views
2K
  • Last Post
Replies
2
Views
4K
Replies
8
Views
7K
Replies
3
Views
2K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
664
  • Last Post
Replies
10
Views
8K
Top