Thread Closed

Newb Success! Gfortran & G77 in Vista. Step by Step Tutorial.

 
Share Thread Thread Tools
Jul30-09, 06:10 AM   #1
 

Newb Success! Gfortran & G77 in Vista. Step by Step Tutorial.


Now that I have a suitable Fortran compiler I wonder what would be a good IDE. Anyway here is what I did:

I am new to programming and command prompt usage. Here is the tutorial I used, then an added step that was necessary not covered in the link:

http://www.neuralwiki.org/index.php?..._Windows_Vista

(1). I downloaded/installed Gfortran and G77, setup PATHS, following instructions in link. Then I copied and pasted the following Hello World program in into the notepad text editor that comes with Vista:

The indentation is 6 spaces.
____________________________________________


PROGRAM HELLOW
WRITE(UNIT=*, FMT=*) 'Hello World'
END

____________________________________________


(2). Saved the notepad doc as test.f and then in command prompt from the folder I saved it in typed ' gfortran test.f '.
It created a .exe file called 'a' in same folder.

(3). In prompt I typed ' gfortran test.f -o test.exe '
Then entered and then ran it by merely typing ' test '.

This is what it looked like in prompt:

> gfortran test.f
> gfortran test.f -o test.exe
> test
Hello World


So now that I have a working Fortran compiler what I would like to know is what would be the best IDE, figuring in the fact that I am a total novice.
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Hong Kong launches first electric taxis
>> Morocco to harness the wind in energy hunt
>> Galaxy's Ring of Fire
Aug4-09, 10:26 AM   #2
 
Recognitions:
Gold Membership Gold Member
There is no free integrated development environment (IDE) for FORTRAN. You should switch a more modern code like C++ and use the Visual Studio C++ Express edition to teach yourself a modern language.
 
Aug5-09, 02:09 PM   #3
 
I'm listening. I am open to advise on this. So you are saying that Fortran's relevance is waining, and sees less relavance among the next generation of science programmers?
Quote by CFDFEAGURU View Post
There is no free integrated development environment (IDE) for FORTRAN. You should switch a more modern code like C++ and use the Visual Studio C++ Express edition to teach yourself a modern language.
 
Aug6-09, 07:49 AM   #4
 
Recognitions:
Gold Membership Gold Member

Newb Success! Gfortran & G77 in Vista. Step by Step Tutorial.


Quote by deltapapazulu View Post
I'm listening. I am open to advise on this. So you are saying that Fortran's relevance is waining, and sees less relavance among the next generation of science programmers?
Yes FORTRAN is dated however, it is still used due to legacy in programs, but C/C++ is the language you should spend time learning. C/C++ are used all the time in the scientific community and they can be used outside of the scientific community just as well. Try that with FORTRAN. Trust me, I spend weeks of my life writing older (circa 1974 - 1982) FORTRAN code over again (with many new features) in C/C++.

You can download the IDE from Microsoft for fee. It is Visual Studio 2008 C++ Express. Don't worry about not having MFC capability you can do a lot with this version.
 
Aug7-09, 12:45 PM   #5
 
Can I use Visual C++ to programin C?
Quote by CFDFEAGURU View Post
Yes FORTRAN is dated however, it is still used due to legacy in programs, but C/C++ is the language you should spend time learning. C/C++ are used all the time in the scientific community and they can be used outside of the scientific community just as well. Try that with FORTRAN. Trust me, I spend weeks of my life writing older (circa 1974 - 1982) FORTRAN code over again (with many new features) in C/C++.

You can download the IDE from Microsoft for fee. It is Visual Studio 2008 C++ Express. Don't worry about not having MFC capability you can do a lot with this version.
 
Aug7-09, 12:48 PM   #6
 
Recognitions:
Gold Membership Gold Member
Here is a link that you can download C# from.

http://www.microsoft.com/express/vcsharp/
 
Aug8-09, 01:01 PM   #7
 
Thanks for taking the time to answer me. I really am doing this stuff by myself. In fact, I started another thread elaborating more broadly on my situation.
Quote by CFDFEAGURU View Post
Here is a link that you can download C# from.

http://www.microsoft.com/express/vcsharp/
 
Aug8-09, 01:17 PM   #8
 
Recognitions:
Gold Membership Gold Member
Good, never stop learning. I have been teaching myself programming and general relativity for years. Sometimes the progress is slow, especially on the general relativity track but I never give up. When it comes to programming in todays' environment it can be difficult to know if you have selected the right path. Basically, what type of programs do you wish to write? Trying to write windows form programs (which are the ones you are familiar with that allow you point and click) that involve a GUI (graphical user interface) can be extremely difficult and time consuming for the most basic of programs. Now if you want to write console applications where the user manualy enters in data when prompted by the program and the output is nothing more than a number or a set of numbers, it can be much easier. Some of the programs I write that solve Ordinary Differential Equations (ODE) have to run out of the compilier and there is no user interface other than to see the results on the output screen.
What are you interested in writing? Let me know I will help you out.

Matt
 
Thread Closed
Thread Tools


Similar Threads for: Newb Success! Gfortran & G77 in Vista. Step by Step Tutorial.
Thread Forum Replies
Math Help, solution step by step Calculus & Beyond Homework 3
Differential Equation Problem_Solution step by step Calculus & Beyond Homework 1
Math Help q2, solution step by step Calculus & Beyond Homework 1
[SOLVED] How does my book get from this step to this step? Calculus & Beyond Homework 5
Step by Step rearranging with square roots... General Math 7