[LLVMdev] Clang Integration with MSVS 2013

Reid Kleckner rnk at google.com
Thu Jul 31 17:34:21 PDT 2014


This was http://llvm.org/bugs/show_bug.cgi?id=18906, which was fixed
between 3.4 and 3.5.  We have a 3.5 pre-release squirreled away here:
http://llvm.org/pre-releases/3.5/

That should turn into a real 3.5 release sometime in the next few weeks,
for which Windows support should be pretty robust. The major remaining
incompatibilities are usually SEH, SSE intriniscs, and inline assembly.


On Thu, Jul 31, 2014 at 5:21 PM, Matthew Musto <matthew.musto at gmail.com>
wrote:

> I just installed the pre-compiled binaries for Clang 3.4.1, which was the
> latest version I could find to download.  Starting a new 'blank' project in
> MSVC I was easily able to change the tool set from MS Visual Studio 2013
> (v120) to LLVM-vs2013.
>
> However, trying to compile a simple 'hello world' program resulted in the
> following compiler errors.  Is there something simple I am missing?
>
> Thanks,
> -Matt
>
> 1>------ Build started: Project: Project2, Configuration: Release Win32
> ------
> 1>clang-cl.exe : warning : argument unused during compilation: '/Zi'
> 1>clang-cl.exe : warning : argument unused during compilation: '/Gm-'
> 1>clang-cl.exe : warning : argument unused during compilation: '/EHsc'
> 1>clang-cl.exe : warning : argument unused during compilation: '/GS'
> 1>clang-cl.exe : warning : argument unused during compilation: '/Gy'
> 1>clang-cl.exe : warning : argument unused during compilation:
> '/fp:precise'
> 1>clang-cl.exe : warning : argument unused during compilation:
> '/Zc:wchar_t-'
> 1>clang-cl.exe : warning : argument unused during compilation:
> '/FdRelease\vc120.pdb'
> 1>clang-cl.exe : warning : argument unused during compilation: '/Gd'
> 1>  In file included from Source.cpp:2:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\iostream:6:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\istream:6:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\ostream:6:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\ios:6:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\xlocnum:10:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\streambuf:6:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\xiosbase:6:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\xlocale:8:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\stdexcept:7:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\xstring:6:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\xmemory0:9:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\xutility:8:
> 1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\utility:8:
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(620,32): error : '_Ty' does not refer to a value
> 1>                  : _Cat_base<_IS_CONSTRUCTIBLE(_Ty, _Args...)>
> 1>                                                ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(617,15) :  note: declared here
> 1>  template<class _Ty,
> 1>                 ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(621,1): error : expected class name
> 1>          {       // determine whether _Ty(_Args...) is constructible
> 1>          ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(746,19): error : '_Ty' does not refer to a value
> 1>                  _IS_DESTRUCTIBLE(_Ty)
> 1>                                   ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(48,31) :  note: expanded from macro
> '_IS_DESTRUCTIBLE'
> 1>          : _Cat_base<__is_destructible(_Ty)>
> 1>                                        ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(744,15) :  note: declared here
> 1>  template<class _Ty>
> 1>                 ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(747,1): error : expected class name
> 1>          {       // determine whether _Ty has a destructor
> 1>          ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(887,40): error : '_Ty' does not refer to a value
> 1>                  : _Cat_base<_IS_NOTHROW_CONSTRUCTIBLE(_Ty, _Args...)>
> 1>                                                        ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(884,15) :  note: declared here
> 1>  template<class _Ty,
> 1>                 ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(888,1): error : expected class name
> 1>          {       // determine whether _Ty(_Args...) is nothrow
> constructible
> 1>          ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(951,25): error : '_To' does not refer to a value
> 1>                  _IS_NOTHROW_ASSIGNABLE(_To, _From)
> 1>                                         ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(50,37) :  note: expanded from macro
> '_IS_NOTHROW_ASSIGNABLE'
> 1>          : _Cat_base<__is_nothrow_assignable(_To, _From)>
> 1>                                              ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(947,15) :  note: declared here
> 1>  template<class _To,
> 1>                 ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(953,1): error : expected class name
> 1>          {       // determine whether _From can be assigned to _To,
> nothrow
> 1>          ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(1000,27): error : '_Ty' does not refer to a
> value
> 1>                  _IS_NOTHROW_DESTRUCTIBLE(_Ty)
> 1>                                           ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(52,39) :  note: expanded from macro
> '_IS_NOTHROW_DESTRUCTIBLE'
> 1>          : _Cat_base<__is_nothrow_destructible(_Ty)>
> 1>                                                ^
> 1>  C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(997,15) :  note: declared here
> 1>  template<class _Ty>
> 1>                 ^
> 1>C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\type_traits(1002,1): error : expected class name
> 1>          {       // determine whether _Ty has a nothrow destructor
> 1>          ^
> 1>  10 errors generated.
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140731/8835b7de/attachment.html>


More information about the llvm-dev mailing list