I build Clang/LLVM using VS12 Win64
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
When compiling this:
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!" << endl;
}
I receive this error:
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)
LNK1112 seems to be about using wrong machine target types but I don't know how this applies to Clang