Ticker

6/recent/ticker-posts

How to Download and Install C++ in Vs code under Linux and Windows

1.heading or block contain how to install c++ in vs code under windows

2.heading or block contain how to install gcc in vs code under Linux

C++ in Vs code under Windows

Step1:Download Gcc compiler files from website by clicking below link

Download


 You will direct above website then download from there

Step2: Open download file and start installation


 

Click on the install as show in the above image

 

You Can get option choose path to install but it is recommended that 

to mount it to C: drive

After selecting path then tick the option above shown in the image that is mingw32-gcc-g++ and on left side click on installation and click apply changes


 When you click apply changes you will get this interface and then again    click on apply


After all stuff above here is the finally thing when you click apply then you get above image thing and click on close dialogue automatically and click on close that all you have successfully install the gcc in your pc or laptop

Step3: after completing installation copy this path

C:\MinGW\bin

To Your Environment variable called path and paste it



Search Environment variable in Your windows search bar under setting search then You will find Path Variable and click on edit shown in below image and click on new shown in above image below paste the above path


 

Step4:To check GCC Compiler open Command prompt and type

gcc --Version 

press enter

To open Command prompt press window key + R and type cmd press enter


 To run vs code program in terminal 

*install extension called runner code

*files>preference>setting

search code runner>find run in terminal click on check

Gcc installation under linux

Step1:Open Terminal Ctrl + Alt + T 

then Type This Command

sudo apt install gcc


 

Then press enter and wait end till the installation and download is complete after that to check it

type this gcc --version


if You See above message in your Pc or Laptop then you have successfully

Completed your installation and check in Linux




Post a Comment

1 Comments