What does this mean?

I get this error when compiling/linking a file in VC++ 6.

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Source.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Do you have a main function?

  • Click the little link that says “Search”
  • Enter “unresolved external symbol _main”
  • Read one of the gazillion other posts about this EXACT SAME error

in VC++, a Win32 Application requires a WinMain function. a Win32 console Application requires a main function.