How to Start Coding in Fortran on Windows

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 135

  • @OtonielRamirezotto
    @OtonielRamirezotto Рік тому +1

    Absolutely great! Thank you so much for this very useful video, now I am happily coding, compiling an running successfully!

  • @gasparmontielmela2966
    @gasparmontielmela2966 2 роки тому +8

    At last I found a good tutorial about it, thank you so much!

  • @sharmapravinomprakash1351
    @sharmapravinomprakash1351 Рік тому +7

    gfortran' is not recognized as an internal or external command,
    operable program or batch file.

  • @abhishekdubey5326
    @abhishekdubey5326 2 роки тому +9

    Thank you very much. It was a really helpful video. Very concise and clear.

  • @rpbmpn
    @rpbmpn Рік тому +8

    Excellent. Thank you so much!
    I had spent about 30 mins looking online and was about to dive into an installation process much more complicated than this when I had one more quick search and found your video.
    It was so concise and helpful that I've not only liked the vid, but you've earned yourself a subscriber.
    Thank you!

  • @wookryolhwang7784
    @wookryolhwang7784 2 роки тому +15

    Excellent. This is what I looked for more than a year. Many thanks to you.

  • @sobiaayub4431
    @sobiaayub4431 2 роки тому +3

    finally I got what I was looking for. Thank you

  • @carlosgarcia4440
    @carlosgarcia4440 2 роки тому +7

    I had been looking for a tutorial which could help me for so long. This helped me a lot.

  • @benblackwell44
    @benblackwell44 Рік тому +1

    I liked the fact you gave a list of what you need; much more efficient than listening to your voice, rewind because you missed something, trying again, ... Some people learn visually (i.e., youtube) but others like to read a book. What book can you recommend for VS Code? I learned the hard way that .f90 extension is not recognized but .f95 is. Do you have a follow on video that discusses how to use the debugger gdb? Have you tried white background for VS Code? I am sure this is personal but my eyes like the white background. Thanks for taking the time to share with us.

    • @sayan_panda
      @sayan_panda  Рік тому

      Thanks! In my experience I found theoretical things like how to structure your code, how to parallelize code, the best resource is books but while they cover how to get started they don't cover things like editor or the compiler maybe because these things are constantly evolving. I watched a few UA-cam videos about VS Code while I started using it.
      I think there might be something wrong. All compilers should be accepting .f90 extension. .f90 is still most preferred because of wide compatibility with various compilers. I am currently away from my laptop, once I get back I'll share some books that I found really helpful. I got quite busy academically so couldn't make new videos. Once this semester ends I plan to make a complete series on Fortran.

  • @mahyarkhajehzadeh2681
    @mahyarkhajehzadeh2681 Рік тому +4

    Brief, to the point, and very helpful indeed. Liked and subbed.

  • @ayubkhan4570
    @ayubkhan4570 6 місяців тому +1

    C:\Users\me>gfortran
    'gfortran' is not recognized as an internal or external command,
    operable program or batch file.
    I am getting this
    why? what to do?

  • @alessandropignatelli9723
    @alessandropignatelli9723 Рік тому +2

    I can't find "modern fortran" between the extensions. Do you know why? Are there other extensions to debug fortran code?

  • @yuniyoniyooni
    @yuniyoniyooni 2 роки тому +2

    I followed your method, but there is some problem. When I write "program" in visual studio code, this does not automatically written. SO when try to write inplicit~, I need to write it by myself!, Did I do something wrong?

  • @kinsley.c.nwakuna
    @kinsley.c.nwakuna 4 місяці тому +1

    Good job!!

  • @navyareddy9623
    @navyareddy9623 2 роки тому +2

    Linter can't be found in $PATH. Update your settings with a proper path or disable the linter. what should we do for this. how to set path to the linter executable

  • @muhammadhamzarizwan3319
    @muhammadhamzarizwan3319 2 роки тому +3

    Thanks man! you've sol my issue, I've been looking for a month to install fortran and I just got it

  • @Nate-ot5vj
    @Nate-ot5vj 8 місяців тому

    What a great video, ditto what @Bobby said below. Thanks!

  • @ghdocco
    @ghdocco 2 роки тому +2

    Error: undefined reference to `WinMain' if following your installation guide and running "helloWorld"

    • @sayan_panda
      @sayan_panda  2 роки тому

      Hi, Lots of my friend faced same error. The solution is to create a new file (with .f90 extension) from the sidebar.

    • @zhuotongxie4168
      @zhuotongxie4168 2 роки тому +5

      change the setting of code runner to "save file before running"

    • @anpodlme
      @anpodlme 5 місяців тому

      @@zhuotongxie4168 this worked for me. do you know if I can use this set up for *.FOR files? I got dumped with a bunch of old FOR files and asked to compile them into an executable.

  • @spsingh1863
    @spsingh1863 2 роки тому +4

    Very nicely explained. Thanks

  • @debajyotimaity2959
    @debajyotimaity2959 2 роки тому +2

    Sir i want to learn Fortran programming language from you. Do you have any paid course?

  • @tianruiche3639
    @tianruiche3639 2 місяці тому

    There's an extra step for my windows 11 to get it working:
    Search in "start" and open "edit the system environment variables" setting
    Click "environment variables..."
    In the User variables for... section, look for an entry called PATH
    If PATH exists, click on it, then select Edit
    Add "C:\TDM-GCC-64\bin" (might be different for you) to the list

  • @jaimecabrera7318
    @jaimecabrera7318 Рік тому +3

    Es una explicación muy ordenada y clara. Gracias.

  • @kabeerkumar4334
    @kabeerkumar4334 2 роки тому +2

    You are a cool person... I'm glad to have found these tuts on youtube. Imma subscribe. thanks

  • @AlokKumar-wm8uj
    @AlokKumar-wm8uj 7 місяців тому +1

    this method is working awesome in my old system but not in the new system , with mingw error

  • @ParthJoshi_xD
    @ParthJoshi_xD 2 роки тому +2

    Thank you so much !!!!😊😊😊

  • @mro5858
    @mro5858 Рік тому +2

    Thank you! Clear, short, and informative!

  • @akino8459
    @akino8459 Рік тому +1

    It's really worked!!! Thank u for your sharing!!!!!

  • @solitarygrimreaper
    @solitarygrimreaper 2 роки тому +1

    Sir, the commands "kind" and "storage_size" are not working properly, even after following all the steps that you mentioned in this video. Please help me out! :-(

  • @victoremmanuel7811
    @victoremmanuel7811 Рік тому +1

    Thanks man.. It was helpful and concise

  • @我想想-e5d
    @我想想-e5d 2 роки тому +1

    ok, but why after I compile gfortran with nothing it say "am?" and turn my CMD words as red color?

  • @saraswatasensarma6041
    @saraswatasensarma6041 2 роки тому +3

    Sir, for me the output gives " 'gfortran' is not recognised as an internal or external command, operable program or batch file". Can you suggest a resolution?

    • @sayan_panda
      @sayan_panda  2 роки тому +1

      It means either
      1. TDM-GCC isn't installed.
      2. You may have forgotten to select all in place of c and c++ during the installation of TDM-GCC
      Run the command 'gcc' in the command prompt. If it returns fatal error that means the 2nd case if it says "not recognised as internal or ...." Then it's the first case.

    • @saraswatasensarma6041
      @saraswatasensarma6041 2 роки тому

      Thank you so much Sir. It was indeed the second case. After reinstallation, it is working perfectly well. Thank you once again for your help.

    • @adrianjuarez6080
      @adrianjuarez6080 2 роки тому +1

      ​@@sayan_panda Hello Sayan,
      Upon running helloWorld.95, I got the same error ("'gfortran' is not recognized as an internal or external command, operable program or batch file"). I tried running "gcc" from cmd and got the "fatal error" response. By chance, may you possibly know what might be the issue? Could it possibly be that files need to be stored together in a particular location? Also, could it be this message by VS, "gfortran can't found on path, update your settings with a proper path or disable the linter?"
      Very respectfully,

    • @sayan_panda
      @sayan_panda  2 роки тому

      @@adrianjuarez6080 Hello Adrian greetings, I think you missed the step where I changed the default C/C++ to All. It's in the 3.00 time in the video. You can change that and it should work.

    • @adrianjuarez6080
      @adrianjuarez6080 2 роки тому +5

      @@sayan_panda
      I made sure to change the default C/C++ to all the first time around. However, I was able to make it work after trying various things. Although having limited experience with the software side of things, I honestly wonder if my problem was simply closing and reopening Visual Studios after editing the system environment variables (path). Hopes this helps to those in the future that come across this similar issue.

  • @AdamsFamilusi
    @AdamsFamilusi Рік тому +1

    Hello Sayan! Thank you for the clear explanation!
    I followed all your instructions step by step however when I tried to run the hello world the result was different. The output is copied below. Please COuld you help?
    PS C:\Users\afamilus\Desktop\FORTRAN> cd "c:\Users\afamilus\Desktop\FORTRAN\" ; if ($?) { gfortran Hello.f95 -o Hello } ; if ($?) { .\Hello }
    C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): in function `main':
    C:/crossdev/src/mingw-w64-v8-git/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
    collect2.exe: error: ld returned 1 exit status
    PS C:\Users\afamilus\Desktop\FORTRAN>

  • @blueheffalump5293
    @blueheffalump5293 2 роки тому +1

    I love you so goddam much, this is everything i need in my life

  • @kabeerkumar4334
    @kabeerkumar4334 2 роки тому +6

    Please make a complete tutorial on fortran. there are not many good ones here.

    • @sayan_panda
      @sayan_panda  2 роки тому +5

      Thanks for your complement. Yes. I'm planning to make a series of tutorials on Fortran.

  • @BadhonCR
    @BadhonCR Місяць тому

    Thanks..

  • @abyadahmedayan6881
    @abyadahmedayan6881 5 місяців тому

    Do we need C++, is it mandatory???

  • @safiaedaoudi3272
    @safiaedaoudi3272 Рік тому +1

    Thank you so much for the tutorial, it was really useful, however, how can I run a program with the extension .f or .for?

  • @koushikbhattacharya3778
    @koushikbhattacharya3778 7 місяців тому

    what if there is no internet, i only have the files to install. The step 'TDM-GCC Recommended, ALL Packages' is not showing. what to do then.

  • @chongzhiwu5191
    @chongzhiwu5191 Рік тому

    Error spawning fortls: Please check that fortran-language-server is installed and in your path.
    Source : FORTRAN IntelliSense (Extension)
    I followed your steps step by step but ran into this problem. However, one detail is that when installing Modern Fortran, what is installed is not the Modern Fortran with your icon. It appears first, and I did not find the Morden Fortran with your icon.

  • @kllytsa796
    @kllytsa796 10 місяців тому

    I installed TDM-GCC-64 and type gfortran in the Command Prompt, but my computer couldn't find it😢Can someone help me...😭

  • @JoaoPedro-gw5fo
    @JoaoPedro-gw5fo Рік тому +1

    thank you very much

  • @allsharma
    @allsharma Рік тому +1

    Thank you for this video! Would you tell me if I can convert my old codes from *.for to *.f95?

    • @wkgmathguy218
      @wkgmathguy218 8 місяців тому

      If you just want to run your code, gfortran first.f90 second.for third.f90 and so on will do it for you.

  • @cropcircles5697
    @cropcircles5697 Рік тому +1

    So clear and straight to the point. Thankyou!

  • @starpawsy
    @starpawsy 2 місяці тому

    Dont. Simply ... dont. Get a C compiler, learn C, use that.

  • @badersalmeen2568
    @badersalmeen2568 2 роки тому +1

    thanks, very useful video

  • @VlogDiaries600
    @VlogDiaries600 Рік тому

    Very helpful video. But why don’t you made next one? I am waiting for it.

  • @RSS18
    @RSS18 2 роки тому +1

    Thank you. 🙂

  • @nayansuna2452
    @nayansuna2452 2 роки тому +1

    👍👍👍😁...move forward bro..

  • @MYLENACARVALHOSILVA-j3p
    @MYLENACARVALHOSILVA-j3p Рік тому

    Thank you very much

  • @KingShowPlays
    @KingShowPlays 8 місяців тому

    Why run in terminal? Is it more efficient?

  • @anonymouspy
    @anonymouspy 9 місяців тому

    Thanks a lot.... Wasting 3 hours... At last I found this beneficial one

  • @ri99per14
    @ri99per14 2 роки тому +1

    I'm having problems finding the Fortran folder. I don't have an e directory on my computer

  • @joseamosalvaradomorales60
    @joseamosalvaradomorales60 8 місяців тому

    gracias hasta que encuentro un tutorial decente que explica a los nuevos

  • @lewismassie
    @lewismassie 2 роки тому

    nvm I'm stupid. You have to save the file at least once before you can run anything.
    11:05 When I get to this point it gives me an error:
    2 | print "Hello World"
    | 1
    Error: Missing leading left parenthesis in format string at (1)
    I've looked but I can't find anything online that fixes it

  • @suptotthitaghosh131
    @suptotthitaghosh131 Рік тому +1

    that was really helpful, thanks a lot

    • @sayan_panda
      @sayan_panda  Рік тому +1

      A sub to the channel will be appreciated 🙂. I'll make fortran tutorials soon along with parallel fortran.

  • @anirudh7137
    @anirudh7137 2 роки тому +1

    Thanks dude!

  • @fernandoortiz393
    @fernandoortiz393 5 місяців тому

    Muchas gracias, me ha funcionado a la perfección

  • @exploreyourselfthroughart8155
    @exploreyourselfthroughart8155 2 роки тому +1

    Thanks a lot ❤

  • @jesussouza3889
    @jesussouza3889 6 місяців тому

    Great video, boy. Thanks a lot!

  • @shradhajason8082
    @shradhajason8082 2 роки тому +1

    Thank you

  • @janaelmourad9681
    @janaelmourad9681 8 місяців тому

    exactly what i was looking for , Thank you!

  • @IslamHAOUAS-e3h
    @IslamHAOUAS-e3h 9 місяців тому

    Excellent, thank you very very much !!!

  • @piyushbishi6588
    @piyushbishi6588 Рік тому

    I'm confused on how to enter paths..

  • @TomaSmith-c4p
    @TomaSmith-c4p 9 місяців тому

    make it by watching your video, thanks

  • @kababeu
    @kababeu 2 роки тому +1

    i have an issue with f90 / f95 i followed your iiinstructions when i click on run it shows a problem

    • @sameerk_28
      @sameerk_28 2 роки тому

      SAME ISSUE.

    • @sayan_panda
      @sayan_panda  2 роки тому

      Can you tell me what is the issue particularly?

    • @randymoh1
      @randymoh1 2 роки тому

      @@sayan_panda fortran: error: testform.f95: No such file or directory
      gfortran: error: testform: No such file or directory

    • @sayan_panda
      @sayan_panda  2 роки тому +2

      @@randymoh1 have you saved the file? Make sure you save it using Ctrl + S before you run it.

    • @zebornito3043
      @zebornito3043 2 роки тому +2

      @@randymoh1
      idk if this is a problem for you, but I found a solution for my case
      while naming a program on the left side like he does at 8:05 I named a program "Hello World.f95", and I got following errors:
      gfortran.exe: error: Hello: No such file or directory
      gfortran.exe: error: World.f95: No such file or directory
      gfortran.exe: error: World: No such file or directory
      Than I changed the files name to "HelloWorld.f95" and it was fixed.
      This is probably a really rookie mistake cause I have never used visual studio code and I didn't think a space in the name of the file would be a problem
      After two months I am guessing you already gave up on this or you fixed it yourself but I am sharing my solution just in case. Have a great day.

  • @Corndog1
    @Corndog1 8 місяців тому

    Thank you so much! so helpful!

  • @sohelmondal5641
    @sohelmondal5641 2 роки тому

    Code language not supported or defined aaraha

  • @sohelmondal5641
    @sohelmondal5641 2 роки тому

    Brother modern fortran install nhi ho raha

  • @ingunnbollestad
    @ingunnbollestad Рік тому +1

    how to manually install fortls ?

    • @sayan_panda
      @sayan_panda  Рік тому

      You need Python in order to install fortls. First Install Python (if you are on Linux it's already installed if on Windows download it from their website) Then, go to the CMD/Terminal and type pip install fortls. That should do the job. Cheers!

    • @ingunnbollestad
      @ingunnbollestad Рік тому +1

      @@sayan_panda thanks man, it worked after i added it to system path variable

    • @sayan_panda
      @sayan_panda  Рік тому +1

      @@ingunnbollestad Glad that it worked out!

  • @shrutiOP
    @shrutiOP Рік тому

    thank you very much :)

  • @davidmestanza6158
    @davidmestanza6158 Рік тому

    Thank you very much my friend!!

  • @David-hb6cz
    @David-hb6cz Рік тому

    Thank you man, clear and great job

  • @aneesurrehman6557
    @aneesurrehman6557 9 місяців тому

    Thank you!

  • @sharmapravinomprakash1351
    @sharmapravinomprakash1351 Рік тому

    I get this error:

  • @ElementResources-rp8ox
    @ElementResources-rp8ox 10 місяців тому

    Good job !!!

  • @infotainmentperson
    @infotainmentperson 2 роки тому

    Problem in tdm gcc setup install

  • @ab12345cdf
    @ab12345cdf Рік тому

    Do you know why, when I try to run in VS Code, the terminal will state "'gfortran' is not recognized as an internal or external command,
    operable program or batch file." ? It's definitely installed, I can go out to cmd and check the gfortran version that is installed, but vscode doesn't think so.

    • @sayan_panda
      @sayan_panda  Рік тому

      Have you tried restarting VS Code?

    • @javadmousavy3377
      @javadmousavy3377 11 місяців тому

      @sayan_panda I had this problem that was solved by installing the mingw .

    • @sresthaduttachoudhury6268
      @sresthaduttachoudhury6268 3 місяці тому

      ​@@javadmousavy3377hey can you tell me the procedure?

  • @eslamadel6364
    @eslamadel6364 Рік тому

    thanks

  • @madangopalvaka9078
    @madangopalvaka9078 Рік тому

    Thank you

  • @kuljeetsingh962
    @kuljeetsingh962 2 роки тому

    thanks man

  • @sherazahmedkhan4748
    @sherazahmedkhan4748 2 роки тому

    Thank you!

  • @kotsos123
    @kotsos123 7 місяців тому

    I love you

  • @baepsae9639
    @baepsae9639 2 роки тому

    Hmmm very nice

  • @rutujabairagi914
    @rutujabairagi914 2 роки тому

    thank you

  • @ДаниилДавыдов-п1я
    @ДаниилДавыдов-п1я 2 роки тому

    Does it support files with the "F.18" extension?

    • @johannweber5185
      @johannweber5185 2 роки тому

      For some reason, *.f90 seems to be the savest file extension, even when the code is written in more modern versions of fortran.

  • @rupam_49
    @rupam_49 2 роки тому

    Thanks a lot,

  • @SouravKarmakar-hd6xd
    @SouravKarmakar-hd6xd 2 роки тому

    Carry on ✌️

  • @kuhelimaity5251
    @kuhelimaity5251 2 роки тому

    👍👍

  • @arijitaghosh3846
    @arijitaghosh3846 2 роки тому

    👍👍👍👍

  • @rahmanpashari5078
    @rahmanpashari5078 21 годину тому

    Is anybody is interested in paid FORTRAN project?