0

I am getting this error as part of my VC C++ project. libcmtd.lib(exe_main.obj) error lnk2001 unresolved external symbol main

It's simple Hello world project for now which I am trying to build in Release mode in x64. I am using MTd as runtime library.

1 Answers1

0

Did you use Unicode for this project? Look into the project properties. If you used Unicode the function should be "wmain" instead of "main", I believe. And also if you used the typed version for strings regarding Unicode you should use "_tmain". The same rule applies to string operations, iostream etc. E.g. "_ftprint" instead of "fprint" etc.

D-FENS
  • 1,438
  • 8
  • 21