Strange error!

A program compiles successfully in the mingw compiler.Whenever I put it in Visual Studio, the following error message comes up::

1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>D:\vc\Manasij\Debug\Manasij.exe : fatal error LNK1120: 1 unresolved externals




But generally, programs with int main() gets compiled cottectly.
You should have selected console program in project type.
Topic archived. No new replies allowed.