title: LIBCMT.lib: error LNK2001: unresolved external symbol _main
body: <p>Yes I know there are hundreds of posts about LNK2001 on Stackoverflow already.
  But NONE of them solved my problem.
  So I post my solution here.</p>
  
  <p>Symptom:
  An ATL DLL compiles fine as Debug but fails with the above error compiled as Release.</p>
  
  <p>Stuck for an hour searching in internet and finding usless hints like "Did you define a main() function?" I think that I must publish the solution for my specific problem.</p>