I'm getting an error in C++ in VsCode. When I try to run this code(It's a very basic code):
#include <iostream>
int main()
{
std::cout << "Hello World";
return 0;
}
I'm getting this error:
undefined reference to 'WinMain@16' collect2.exe: error: ld returned 1 exit status
I know there are some solutions for this error in this forum but I still can't get it fixed because I'm new on C++ and I'm trying to learn it. Can someone help me?