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.
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.
+ 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
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
- 1
Stop using vscode ;) I'm using devcpp, qt, both works fine