Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help downloading fortran

Status
Not open for further replies.

tenicho

Technical User
Jun 10, 2016
2
US
I'm wanting to learn fortran 90/95, but I am having trouble downloading it. For the life of me I cannot get fortran to work. I have followed multiple videos on youtube and read up on google. Can someone point me in the right direction to find the best directions or tutorial to download fortran 90/95 onto windows 10.

If anybody could help it would be greatly appreciated!!
 
I'm not really sure what I need. Would you recommend it if I'm just starting out. What's the difference between this one and others?

I downloaded it and tried to run this hello world program.

$ vim helloworld.f

PRINT *,"Hello World!"

END

and I got an error message.

I'm trying to get started with fortran for school but there are no good sources out there for beginners, at least to my knowledge. No two tutorials are alike and I'm pretty much completely confused on how fortran works, how to download it, and how to run it. I consider myself good at matlab and python but downloading and programming is pretty straight forward so it was a lot easier for me to catch on, plus there are a lot more tutorials for python and matlab

Can I get some help?
 
tenicho said:
I downloaded it and tried to run this hello world program.

$ vim helloworld.f

PRINT *,"Hello World!"

END

and I got an error message.

The command
vim helloworld.f
is only for opening the fortran source file using the vim editor.

But you did not say, how have you tried compile+run the program and what error you got.
 
You say you have an error message, I might be blind but I see no error message. Also your program is fine. Personally I use the CYGWIN package for using unix apps on windows and I put it's bin directory in the path

C:\temp4>vi test.f95

C:\temp4>ls
test.f95

C:\temp4>gfortran test.f95 -o test

C:\temp4>ls
test.exe test.f95

C:\temp4>test
Hello World!

C:\temp4>more test.f95
PRINT *,"Hello World!"

END

Bill
Lead Application Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top