I have the following error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup,
There are a lot of threads relating to this error bu
I got this error while I was trying to turn off precompiled headers in a Console Application Project and removing the header file stdafx.h
To fix this go to your project properties -> Linker -> SubSystem and change the value to Not Set
In your main class, use the standard C++ main function protoype that others have already mentioned :
int main(int argc, char** argv)