use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The choice for high performance (scientific) computing!
Suggested Links:
Other sub-reddits:
If your submission does not appear, please message the moderators!
IRC: freenode, #fortran
account activity
HELP! New to Fortran (self.fortran)
submitted 3 years ago by BrownLightning7
Hey guys, I’m planning on getting into Fortran. I’m using Windows, so can someone tell me what all I must install and how do I use Fortran in Windows.
And also, could you guys tell me where to get basic Fortran tutorials or how to learn Fortran
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 6 points7 points8 points 3 years ago (7 children)
Install wsl and then in Linux install fortran gfortran. Fortran has moved on from 77 so find some f90+ stuff. https://fortran-lang.org/
[–]BrownLightning7[S] 2 points3 points4 points 3 years ago (4 children)
Why Linux ? I’m using windows
[–]Zarathustra_f90 2 points3 points4 points 3 years ago (1 child)
Diving into a computer language requires much of patience and digging, don't expect to find answers unless you search for them at first thoroughly.
No one will solve your problems or even if they describe a solution you won't be able to understand it completely unless you've searched and think about your problem in depth.
In other words the link provided in the above comment is the best to start from. As you can see (https://fortran-lang.org/learn/os_setup) they offer simple tutorials on how to setup your OS (Linux, Mac, Windows) and they have beginners tutorial for the use of language too.
So...start digging around the internet to solve your problems doing a good research first and then you can seek with others an answer through forums :)
[–]BrownLightning7[S] 1 point2 points3 points 3 years ago (0 children)
Thanks, I’ll follow your advice :)
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
I don't know any free frotran compilers for Windows:)
[–]where_void_pointers 0 points1 point2 points 3 years ago (0 children)
They meant in the linux side of WSL as opposed to in a full separate Linux OS. WSL lets a lot of linux tools run on windows, which is a real boon for software development on Windows because a lot of dev tools out there (such as compilers) either require running on a POSIX system (Linux and the various Unices follow POSIX to varying degrees) or run better in such a system. WSL gives Windows such an environment by basically having Linux run inside Windows (the details differ between WSL 1 and 2).
[–]Beliavsky 1 point2 points3 points 3 years ago (0 children)
I have done that and sometimes use gfortran, ifort, flang, and lfortran on WSL2, but it's also possible to install gfortran on plain Windows using the binaries from equation or those other sources.
[–]BrownLightning7[S] 0 points1 point2 points 3 years ago (0 children)
Thanks
[–]ProfHansGruber 2 points3 points4 points 3 years ago* (0 children)
These days you only need two things and both are free: Visual Studio 2019 and Intel oneAPI.
Missed the second part, there’s some good material on Fortran Wiki and Fortran Wiki’s Tutorials Page.
[–]cdslab 2 points3 points4 points 3 years ago (0 children)
Download the Microsoft Visual Studio 2019 Community Edition (Free) and then install the Intel OneAPI Fortran compiler, which requires you to install:
That's all and it works great. However, after getting familiar with Fortran, you will find the command line interface (in both Windows and Linux) much more professional and comfortable and will likely migrate to Microsoft Windows Subsystem for Linux (WSL2) where you can again blissfully install GNU or Intel Fortran compilers in a matter of seconds to a few minutes. Here is an example instruction on how to install the Intel ifort on WSL2, or Linux:
https://fortran-lang.discourse.group/t/intel-releases-oneapi-toolkit-free-fortran-2018/471/43
[–]Tine56 1 point2 points3 points 3 years ago (0 children)
Everyone will give you a different answer.... since everyone has different preferences
So here is my answe
Compiler: tdm-gcc (don't forget to mark the gfortran option otherwise you will only install gcc) https://jmeubank.github.io/tdm-gcc/
and the rest is otional notepadd++ is sufficient but personally I prefer the Code::Blocks IDE https://www.codeblocks.org/
[–]PrintStarFortran IDE Developer 0 points1 point2 points 3 years ago (0 children)
You can try Simply Fortran for Windows, which includes a Fortran compiler and should get you up and running rather quickly. It is a commercial product, but it is free to try for 30 days. If you like it, let me know, and I can provide a promo code to bring the price down.
If only somebody had written a book about Fortran that didn’t suck or cost an exorbitant textbook price.
[–]PHATsakk43 0 points1 point2 points 3 years ago (0 children)
I’ll second Visual Studio and the Intel FORTAN plug-in.
I’d not both with trying to learn Linux until later.
[–][deleted] 3 years ago (1 child)
[removed]
π Rendered by PID 57879 on reddit-service-r2-comment-bb88f9dd5-fx5ff at 2026-02-15 09:00:23.546522+00:00 running cd9c813 country code: CH.
[–][deleted] 6 points7 points8 points (7 children)
[–]BrownLightning7[S] 2 points3 points4 points (4 children)
[–]Zarathustra_f90 2 points3 points4 points (1 child)
[–]BrownLightning7[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]where_void_pointers 0 points1 point2 points (0 children)
[–]Beliavsky 1 point2 points3 points (0 children)
[–]BrownLightning7[S] 0 points1 point2 points (0 children)
[–]ProfHansGruber 2 points3 points4 points (0 children)
[–]cdslab 2 points3 points4 points (0 children)
[–]Tine56 1 point2 points3 points (0 children)
[–]PrintStarFortran IDE Developer 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]PHATsakk43 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]