New Reply

Help writing with fortran

 
Share Thread Thread Tools
Aug29-12, 05:12 PM   #1
 

Help writing with fortran


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
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> 'Whodunnit' of Irish potato famine solved
>> The mammoth's lament: Study shows how cosmic impact sparked devastating climate change
>> Curiosity Mars rover drills second rock target
Aug29-12, 07:04 PM   #2
 
Mentor
Quote by rhimmelblau View Post
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.
 
New Reply
Thread Tools


Similar Threads for: Help writing with fortran
Thread Forum Replies
Fortran OpenMP parallelization and writing in multiple files. Programming & Comp Sci 2
[FORTRAN] Writing to same file from multiple processors? Programming & Comp Sci 9
Binary file writing in Fortran:urgent help needed Programming & Comp Sci 0
Turn off writing to screen in Fortran 90 Programming & Comp Sci 2
Accessing Fortran Modules within a Fortran library from Fortran Programming & Comp Sci 0