How to Start Coding in Fortran on Windows

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии •

  • @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.

  • @carlosgarcia4440
    @carlosgarcia4440 2 года назад +7

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

  • @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

  • @OtonielRamirezotto
    @OtonielRamirezotto Год назад +1

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

  • @abhishekdubey5326
    @abhishekdubey5326 2 года назад +9

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

  • @gasparmontielmela2966
    @gasparmontielmela2966 2 года назад +8

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

  • @mahyarkhajehzadeh2681
    @mahyarkhajehzadeh2681 Год назад +4

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

  • @anonymouspy
    @anonymouspy 10 месяцев назад

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

  • @mro5858
    @mro5858 Год назад +2

    Thank you! Clear, short, and informative!

  • @cropcircles5697
    @cropcircles5697 Год назад +1

    So clear and straight to the point. Thankyou!

  • @jaimecabrera7318
    @jaimecabrera7318 Год назад +3

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

  • @sobiaayub4431
    @sobiaayub4431 2 года назад +3

    finally I got what I was looking for. Thank you

  • @kabeerkumar4334
    @kabeerkumar4334 2 года назад +2

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

  • @ayubkhan4570
    @ayubkhan4570 7 месяцев назад +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?

  • @victoremmanuel7811
    @victoremmanuel7811 Год назад +1

    Thanks man.. It was helpful and concise

  • @Nate-ot5vj
    @Nate-ot5vj 9 месяцев назад

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

  • @janaelmourad9681
    @janaelmourad9681 9 месяцев назад

    exactly what i was looking for , Thank you!

  • @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 RUclips 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.

  • @sharmapravinomprakash1351
    @sharmapravinomprakash1351 Год назад +7

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

  • @akino8459
    @akino8459 Год назад +1

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

  • @spsingh1863
    @spsingh1863 2 года назад +4

    Very nicely explained. Thanks

  • @blueheffalump5293
    @blueheffalump5293 2 года назад +1

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

  • @joseamosalvaradomorales60
    @joseamosalvaradomorales60 9 месяцев назад

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

  • @alessandropignatelli9723
    @alessandropignatelli9723 Год назад +2

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

  • @NazihAhmedBOURICHE
    @NazihAhmedBOURICHE 14 дней назад

    Very useful. Thank you so much !

  • @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?

  • @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

  • @tianruiche3639
    @tianruiche3639 3 месяца назад

    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

  • @fernandoortiz393
    @fernandoortiz393 6 месяцев назад

    Muchas gracias, me ha funcionado a la perfección

  • @IslamHAOUAS-e3h
    @IslamHAOUAS-e3h 10 месяцев назад

    Excellent, thank you very very much !!!

  • @我想想-e5d
    @我想想-e5d 2 года назад +1

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

  • @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?

  • @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.

  • @David-hb6cz
    @David-hb6cz Год назад

    Thank you man, clear and great job

  • @kinsley.c.nwakuna
    @kinsley.c.nwakuna 5 месяцев назад +1

    Good job!!

  • @VlogDiaries600
    @VlogDiaries600 Год назад

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

  • @AlokKumar-wm8uj
    @AlokKumar-wm8uj 9 месяцев назад +1

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

  • @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 9 месяцев назад

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

  • @jesussouza3889
    @jesussouza3889 7 месяцев назад

    Great video, boy. Thanks a lot!

  • @debajyotimaity2959
    @debajyotimaity2959 2 года назад +2

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

  • @koushikbhattacharya3778
    @koushikbhattacharya3778 8 месяцев назад

    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.

  • @ParthJoshi_xD
    @ParthJoshi_xD 2 года назад +2

    Thank you so much !!!!😊😊😊

  • @darthmarcos1210
    @darthmarcos1210 19 дней назад

    I can't find the same Modern Fortran extension for VScode

  • @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 6 месяцев назад

      @@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.

  • @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! :-(

  • @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.

  • @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.

  • @Corndog1
    @Corndog1 9 месяцев назад

    Thank you so much! so helpful!

  • @JoaoPedro-gw5fo
    @JoaoPedro-gw5fo Год назад +1

    thank you very much

  • @badersalmeen2568
    @badersalmeen2568 2 года назад +1

    thanks, very useful video

  • @davidmestanza6158
    @davidmestanza6158 Год назад

    Thank you very much my friend!!

  • @nayansuna2452
    @nayansuna2452 2 года назад +1

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

  • @KingShowPlays
    @KingShowPlays 9 месяцев назад

    Why run in terminal? Is it more efficient?

  • @RSS18
    @RSS18 2 года назад +1

    Thank you. 🙂

  • @ri99per14
    @ri99per14 2 года назад +1

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

    • @sayan_panda
      @sayan_panda  2 года назад +1

      You have to make one. Create a new folder wherever you want.

    • @dmitrijkatkov6525
      @dmitrijkatkov6525 2 года назад

      @@sayan_panda how???

  • @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.

  • @abyadahmedayan6881
    @abyadahmedayan6881 6 месяцев назад

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

  • @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 Год назад

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

    • @sresthaduttachoudhury6268
      @sresthaduttachoudhury6268 4 месяца назад

      ​@@javadmousavy3377hey can you tell me the procedure?

  • @kllytsa796
    @kllytsa796 11 месяцев назад

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

  • @anirudh7137
    @anirudh7137 2 года назад +1

    Thanks dude!

  • @shrutiOP
    @shrutiOP Год назад

    thank you very much :)

  • @aneesurrehman6557
    @aneesurrehman6557 10 месяцев назад

    Thank you!

  • @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.

  • @exploreyourselfthroughart8155
    @exploreyourselfthroughart8155 2 года назад +1

    Thanks a lot ❤

  • @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

  • @shradhajason8082
    @shradhajason8082 2 года назад +1

    Thank you

  • @SouravKarmakar-hd6xd
    @SouravKarmakar-hd6xd 2 года назад

    Carry on ✌️

  • @BadhonCR
    @BadhonCR 2 месяца назад

    Thanks..

  • @baepsae9639
    @baepsae9639 2 года назад

    Hmmm very nice

  • @ДаниилДавыдов-п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,

  • @kuhelimaity5251
    @kuhelimaity5251 2 года назад

    👍👍

  • @piyushbishi6588
    @piyushbishi6588 Год назад

    I'm confused on how to enter paths..

  • @kuljeetsingh962
    @kuljeetsingh962 2 года назад

    thanks man

  • @kotsos123
    @kotsos123 8 месяцев назад

    I love you

  • @eslamadel6364
    @eslamadel6364 Год назад

    thanks

  • @infotainmentperson
    @infotainmentperson 2 года назад

    Problem in tdm gcc setup install

  • @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!

  • @sohelmondal5641
    @sohelmondal5641 2 года назад

    Code language not supported or defined aaraha

  • @starpawsy
    @starpawsy 3 месяца назад

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

  • @sharmapravinomprakash1351
    @sharmapravinomprakash1351 Год назад

    I get this error:

  • @rahmanpashari5078
    @rahmanpashari5078 Месяц назад

    Is anybody is interested in paid FORTRAN project?

  • @TomaSmith-c4p
    @TomaSmith-c4p 10 месяцев назад

    make it by watching your video, thanks

  • @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>

  • @MYLENACARVALHOSILVA-j3p
    @MYLENACARVALHOSILVA-j3p Год назад

    Thank you very much

  • @ElementResources-rp8ox
    @ElementResources-rp8ox 11 месяцев назад

    Good job !!!

  • @sherazahmedkhan4748
    @sherazahmedkhan4748 2 года назад

    Thank you!

  • @wstatus7004
    @wstatus7004 3 дня назад

    thank you

  • @arijitaghosh3846
    @arijitaghosh3846 2 года назад

    👍👍👍👍

  • @madangopalvaka9078
    @madangopalvaka9078 2 года назад

    Thank you

  • @rutujabairagi914
    @rutujabairagi914 2 года назад

    thank you