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
this main works in both linux and windows - found it through trial and error and help from others so can't explain why it works, it just does int main(int argc, char** argv)
main
int main(int argc, char** argv)
no tchar.h necessary
tchar.h
and here is the same answer in Wikipedia Main function