How do I download a compiler in vs code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I download a compiler in vs code?

I'm trying to download a compiler in vs code since 1 week but still I'm unable to... My hello world code isn't getting compiled,

4th Mar 2022, 6:32 PM
Zorain Kalu
Zorain Kalu - avatar
25 Answers
+ 2
download mingw compiler and set environment variable path and check via command in terminal is it showing version or not if yes then it means u have added write path then try to compile your code
4th Mar 2022, 6:35 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
https://sourceforge.net/projects/mingw/ or you can refer YouTube tutorials for guidance
4th Mar 2022, 6:46 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Which programming language do you want to write the code in?
4th Mar 2022, 7:59 PM
Marine
+ 2
C++, I'm starting to learn it
4th Mar 2022, 8:00 PM
Zorain Kalu
Zorain Kalu - avatar
+ 2
and what computer do you work with?
4th Mar 2022, 8:02 PM
Marine
+ 2
An HP laptop with i3😞
4th Mar 2022, 8:03 PM
Zorain Kalu
Zorain Kalu - avatar
+ 2
Visual C++
4th Mar 2022, 8:08 PM
Marine
+ 2
You can download the extension in the vs code. It allows to compile any programming language. It named "C/C++ Compile Run.
5th Mar 2022, 1:08 PM
Павло Стрельченя
+ 1
Yeah can you pleeeeeaseeeee provide me the link for it, I'll be very grateful💕
4th Mar 2022, 6:44 PM
Zorain Kalu
Zorain Kalu - avatar
+ 1
I'll back soon, and give you a link. Wait))
5th Mar 2022, 1:15 PM
Павло Стрельченя
5th Mar 2022, 1:22 PM
Павло Стрельченя
0
Thanks
5th Mar 2022, 1:34 PM
Zorain Kalu
Zorain Kalu - avatar
0
Download minGW and configure your PATH so you can use it through the terminal in VS Code. Since you're on Windows, you may also want to consider downloading Visual Studio (which, despite the similar name, is much more than a text editor that VS Code is), especially if you're into developing large projects specifically for the Windows platform. Visual Studio is a full-fledged IDE with editing tools, a compiler, debugging and performance analysis tools.
6th Mar 2022, 9:51 AM
Hiba al-Sayf
Hiba al-Sayf - avatar
6th Mar 2022, 11:24 AM
Swar2510
0
Thanks guys it worked! You're all awesome!! But on my terminal there's a problem that it couldn't find gcc, should I look into it?
6th Mar 2022, 1:01 PM
Zorain Kalu
Zorain Kalu - avatar
0
DOWNLOAD CODE RUNNER AND THEN DOWNLOAD C++ EXTENSION GO TO SETTING IN VS CODE FIND RUN IN TERMINAL AND ALLOW THAT
6th Mar 2022, 1:03 PM
Swar2510
0
WRITE gcc -- version for c g++ -- version for c++
6th Mar 2022, 1:04 PM
Swar2510
0
Zorain Kalu r u using windows of yes then u need to set environment variable path
6th Mar 2022, 1:05 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
I've did that according the video by the animator but on terminal there is a problem''
6th Mar 2022, 1:13 PM
Zorain Kalu
Zorain Kalu - avatar
0
You deleted your previous compiler
6th Mar 2022, 1:14 PM
Swar2510