0

My VS code is not running C++ Check error and plzz help

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:46 AM
Abdul Samad
Abdul Samad - avatar
1 Respuesta