title: Warning treated as error - no 'object' file generated
body: <p>I am trying to build my first <a href="https://www.codeproject.com/Articles/633/Introduction-to-COM-What-It-Is-and-How-to-Use-It?fid=866&amp;df=90&amp;mpp=25&amp;sort=Position&amp;spc=Relaxed&amp;prof=True&amp;view=Normal&amp;fr=26#_articleTop" rel="nofollow noreferrer">COM Example</a>, I created a VS 2012 project. I got the errors in the library, which I solved by changing the <code>_WIN32_WINNT</code> to <code>0x0601</code> for Windows 7 and apparently changed <code>_WIN32_IE</code> to <code>0x0800</code> in <code>StdAfx.h</code>. Also I changed the <code>_WIN32_WINNT</code> in <code>Settings -&gt; C/C++ -&gt; Preprocessor</code> and now I am getting the errors as below</p>
  
  <pre><code>1&gt;------ Build started: Project: COM, Configuration: Debug x64 ------
  1&gt;  COMIntro.cpp
  1&gt;COMIntro.cpp(21): error C2220: warning treated as error - no 'object' file generated
  1&gt;COMIntro.cpp(21): warning C4100: 'envp' : unreferenced formal parameter
  1&gt;COMIntro.cpp(21): warning C4100: 'argv' : unreferenced formal parameter
  1&gt;COMIntro.cpp(21): warning C4100: 'argc' : unreferenced formal parameter
  1&gt;  StdAfx.cpp
  1&gt;  Generating Code...
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>Is it due to my windows SDK version which is 7.1 or some compatibility issue ?</p>