[LLVMdev] Compiling LLVM 2.7 with Visual Studio 2010.

Tom van Dijck llvm at tomvandijck.com
Sat May 1 19:59:32 PDT 2010


Hey,

Downloaded the release, used CMake to create solution... building mostly
seems to be OK, except for a couple of compiler errors.


warning C4090: 'function' : different 'const' qualifiers
d:\companyone\external\llvm\source\llvm-2.7\lib\support\regengine.inc    188
error C2248: 'llvm::EquivalenceClasses<ElemTy>::ECValue::ECValue' : cannot
access private member declared in class
'llvm::EquivalenceClasses<ElemTy>::ECValue'    C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\include\xmemory    208
error C2668: 'llvm::next' : ambiguous call to overloaded function
D:\CompanyOne\External\LLVM\source\llvm-2.7\lib\Transforms\Scalar\LoopStrengthReduce.cpp
2820
error C2440: 'initializing' : cannot convert from 'int' to 'const
llvm::TargetRegisterClass *'    C:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\include\utility    163
error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be
initialized    C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\utility    163

it totals to 15 build errors and 2 warnings, but most of them are repeats of
the above 5..
Are these known issues? Or did I fail to set some setting?

3 of the errors come from usage of templates, hence the file names end up
somewhere in the VS SDK, I can provide more details if required though..

Tom.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100501/cad08ca5/attachment.html>


More information about the llvm-dev mailing list