+ 1
Help me to fix my VS code problem plz😢
Actually, in my VS code, C++ is not running although I have made the setup properly. Path,intelisence and etc all the things are done but c++ is not running. When I run program it show like this in terminal 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 12.84 seconds
7 Answers
+ 2
Aysha 💕 after configuration this error is showing I guess after installing MingW he has given path of mingw32 instead of 64 bit becz when u downloading mingw by default it downloading for 32. And 64 bit.
same error I have also faced but i was trying to configure SDL lib
https://www.sololearn.com/post/1157016/?ref=app
+ 1
Are you trying to configure any library like SDL OpenGL......
+ 1
Aysha 💕 i Guess this is the issue of path
+ 1
Instead of checking version of gcc type in command prompt if u have Windows
Cmd -> g++ --version it it showing any version or not
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