Error

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

Solution

You are using the identifier without declaring it. #include int Wmain(void) { int var=23; printf("output var var=%d\n",var); return 0; }