0

My VS code is not running C++.

Those who know VS code will plz help me, provide a social account on Instagram or Linkedin to send screenshots.

12th Aug 2021, 3:47 AM
Abdul Samad
Abdul Samad - avatar
4 Answers
+ 4
Vscode is just a text editor. You need to install a compiler separately. https://code.visualstudio.com/docs/languages/cpp Please do not prompt other users to share their social media accounts. There are plenty of free public services to post your screenshots, and just share the link here.
12th Aug 2021, 4:26 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Stackoverflow is always a good place to start looking for solutions https://stackoverflow.com/questions/67013332/c-undefined-reference-to-error-visual-studio-code
12th Aug 2021, 5:31 AM
Tibor Santa
Tibor Santa - avatar
0
No wait I will copy paste a simple code and its error plz tell me what that error about #include<iostream> using namespace std; int main() {cout<<"Hello World"; return 0; } OUTPUT:- [Running] cd "c:\Users\ABDUL SAMAD\Desktop\stuffs of comp\C++\" && g++ tut1.cpp -o tut1 && "c:\Users\ABDUL SAMAD\Desktop\stuffs of comp\C++\"tut1 c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status [Done] exited with code=1 in 5.282 seconds
12th Aug 2021, 4:38 AM
Abdul Samad
Abdul Samad - avatar
- 1
Stop using vscode ;) I'm using devcpp, qt, both works fine
13th Aug 2021, 8:29 AM
nicolas turek
nicolas turek - avatar