title: Clang++ Windows LNK1112 error
body: <p>I build Clang/LLVM using VS12 Win64</p>
  
  <pre><code>clang version 3.7.0 (http://llvm.org/git/clang 9a5a6f0e149ba035168641ca6dc4e3b3e
  5aa29b5) (http://llvm.org/git/llvm 1de72bda4e6114393ddc8bad2c13d8abee3d374a)
  Target: x86_64-pc-windows-msvc
  Thread model: posix
  </code></pre>
  
  <p>When compiling this:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main() {
      cout &lt;&lt; "Hello World!" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>I receive this error:</p>
  
  <pre><code>libcmt.lib(typinfo.obj) : fatal error LNK1112: module machine type 'X86' conflic
  ts with target machine type 'x64'
  clang++.exe: error: linker command failed with exit code 1112 (use -v to see inv
  ocation)
  </code></pre>
  
  <p>LNK1112 seems to be about using wrong machine target types but I don't know how this applies to Clang</p>