How to install VS Code and GCC compiler(from MSYS2) for windows user. #vs_code #gcc_compiler #MSYS2

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone i'm muhammad khalid and welcome to my youtube channel physical mathematical technology so today in this video i'm gonna help you in downloading vs code and this is a compiler downloading vs code and installing it and downloading gcc compiling is an easy task majority of people can do that but installing gcc compiler is an you know challenging one because people find it hard to install it they may download the gcc controller but uh installing may then require little you know skill in this video i'm going to help you in downloading those things so quickly go through the google and then you need to type vs code official website and then you will get the first link you see here obviously you need to click on this and then you have to click on download if you are using mac then you you need to click on this link if you're using windows then you need to click on this link since i'm using windows i'll click on this so now you can see your installation process is been going on and yes it's been done so click on this click on open button then you need to accept the terms and conditions of the visual studio you need to accept the agreement or license and then you you need to click on next actually these four blocks will not be checked for you you need to check all the power box in future it is example and if you need additional like if you need a desktop icon you need to check this box if you don't want you need to uncheck this box since i want i'll check this box and then you need to click on next and then you need to click on install now the installation process is repairing and then i think it's not installing depending on your computer speed and features it will take time all right guys now it's been installed now you need after you click on finish you will open up this new vs4 window now here completes the installing and downloading of ps4 now actually the main purpose of this video is that we need to install gcc and we'll proceed in a way so the same as i mentioned earlier the visual studio code official inside you need to go on that and then click on documents if you click on documents you will end up this window and then you you need to click on c plus first and then if you're using linux then you don't need to download the compiler because it will be pre-installed in your computer if you're using windows then you need to click on this now actually this this page has been updated initially we had direct uh one link um 64 bit we used to click on that and then we used to get this is the compiler and it was like easy but now this page has been updated so we are we have this ncs2 website so from this we have to download we have to download tool you need to click on click here you can see a lot process is going on depending on your internet connectivity and its speed it will take time all right as you can see here it's now downloaded now you have to click on this and then you have to open this and this is cool you can see here this ends this two 64-bit settings you have to install click on next this is actually the location where this and system will be downloaded in your computer so let us download where you want to launch it click on next and then click on next here we'll be seeing that it is installing actually this installing process takes time so this is taking real time yes it's 100 percent install then you click on next this box will be already checked if you didn't get checked this box you need to check this box and then click on finish and you'll open up a new window you need to minimize this window and then in the third point you see in the last line here we have the link for the m62 website you just need to click on that and this website will invite you in installing the this is a compiler see we have installed the ncs264 bit processor and then we further we followed this step and then we at last we finished this installation process and then the fifth point is that you need to update the package databases and package and base packages so you need to follow the fifth step for that you need to type this pacman as you in the new window which you minimize just now you have to click on that and then you need to type pacman iphone capital s you and then click enter and maximize the look here actually we need to click two times enter since i have clicked once and one more time you can see here how many doubles are taken and they are installing now you need to press enter this is now you know press enter key step has been done now you need to carry out the sixth step the sixth step says is that you need to run the m62 m6 from start menu and then we have to check the rest of the updates so click here so type mcs to ansys you have to click on this and you will open up a new window and then you need to type padman iphone capitalist you and then you need to enter two times now you need to press enter key you can see the step seems to be tough but it's actually not done you need to be cool and just follow this video here one thing i want to emphasize is that if you get error in doing any of this step so in that step what key you were first entered you need to enter the same again so that the rest can be installed suppose like you have 95 in that like 40 it's been installed and you got error so [Music] in this step and then you have to you need to enter so that the rest of the 50 files will be downloaded laughs all right now you need to minimize this window and then you need to follow this sixth step sorry sixth step has been done you need to follow the seventh step now you need to type here however just you can copy paste this thing like one is needed vegetable or you can type you can type pacman iphone capital less another iphone needed this iphone devel main gw iphone w64 and then hyphen now this is not into mark it is x small letter x and then 86 and then underscore 64 iphone tool chain and then you need to click on enter just maximize the window click one more diameter now we have to press some more time enter now actually we need only the third one mingw64 86 gcc compiler this unit if you want all like if you want to all the 19 this then you need to just click on enter if you want only third one because for vs code we need only this third one gcc compiler so i'll be pressing third and then i'll be pressing enter and then i'll press enter as i have mentioned earlier if you get any error in the installing process you need to type the same code of that step and then you need to click enter and then you can install that why we get error is that because of low installing speed low installing process sometimes we get error so it totally depends on computer feature and all this one is our actual gcc company in last step eighth step i'll show you this is yours and the same origin will be there ten point three point zero and one more thing i want to show you during this installation process you please don't touch the keyboard keys if you press any keys and then also you will get error once i got there by pressing f1 key function key i had pressed i had got error so please don't just keyboard now as you can see the installation process has been completed so you need to minimize this now you need to close this window and now you need to go to start menu and then you need to write m6 i mean the w64 bit from there you can call gcc and check its version and all so let me do that right m m c s this one actually yeah m system we need up 64 bit so click on this now you need to type gcc iphone version and then click on enter you can see gcc.exe and it's version is 10.3.2 as i mentioned earlier also while the files were installing there also i showed you the dcc version will be 10.3.0 so close this window now your gcc has been completely installed now if you write any code in this vs code in this software if you write any code and then when you when you want to run the code you need to give the location of the gcc every time so that job will be tedious so now what i will do is i will add the gcc location to the path of this computer so that whenever you run the code automatically that path will be taken up by by this software so let me minimize this now you need to click on my computer or you can just press windows key on the keyboard now you need to go to this sc drive folder and then you will be having cmc 64-bit just click on that and then we'll be having mingw64 you need to click on that and then click on bin and here is the dcc compiler you need to single click on that once you single click on that you need to click here if you click here this location of the gcc will be getting you need to copy this by pressing ctrl c key on the keyboard and then you need to go to this pc click single click on that and then right click on that and then go to properties and then you need to click on advanced system settings and then you need to click on environmental variables now you have to click on path and then click on edit now you have to click name now whatever you have copied earlier gcc location you need to paste it here just press ctrl v key on the keyboard so that here it will be pasted and then you need to click ok and every box you have like every windows you have to close by clicking on ok ok click on ok and then close this window now actually we have added the path or added the location of the gc on the path now if you go to the visual studio code if you want to create any file you need to press this icon and then i'll be just i'll be just showing a simple hello world program hello underscore world sorry hello underscore world dot c you need to click enter now you can see i'll write the code you need to type the header file hash include standard input output dot header file and then into main you need to write printf hello world return zero now if you you need to actually go to extensions and you need to search here for coder code runner ah this one this one you need to install since i have already installed it so for me it is showing uninstall and then we have i have gunshot so you need to install this and then you will get this icon so that if you want to run this code if you want to run this code unit we just click on this code runner icon if you click you will open up a new terminal and you can see the hello world this time it wait see you can see the hello world so it is a simple one i have done for i have done using vs code software so this is the all about installing and downloading the gcc and vs code software so thank you
Info
Channel: Physic-so-Mathematica Techno-Computa
Views: 618
Rating: undefined out of 5
Keywords: MSYS2, VS Code, Visual Studio Code, GCC, GCC Compiler, Software Installing, #VS Code, Downloading, Installing, Physic-so-Mathematica Techno-Computa
Id: 6s_GQbR0scE
Channel Id: undefined
Length: 21min 41sec (1301 seconds)
Published: Tue Aug 17 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.