I’m having two errors everytime I try to debug a simple project in Visual Studio 2010.
Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup C:\Users\Fighter\Documents\C++\Point\Point\MSVCRTD.lib(crtexe.obj) Point
Error 2 error LNK1120: 1 unresolved externals C:\Users\Fighter\Documents\C++\Point\Debug\Point.exe 1 1 Point
this is a simple code I’m using to try my program in VS :
class Point
{
private:
int x;
int y;
};
The problem is that this thing works great in Code::Blocks but whith VS it gives me those errors.
What’s the problem here.
Thanks
Your program needs a main() function to be valid.