Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling Clang on Windows
    primarykey
    data
    text
    <p>I followed instructions at <a href="http://clang.llvm.org/get_started.html" rel="nofollow">http://clang.llvm.org/get_started.html</a></p> <p>I compiled latest trunk of llvm and clang with MSVC 2010. Now I can compile simple programs with Clang but when I tried to compile this program I got a lot of errors. Here is program:</p> <pre><code>#include &lt;algorithm&gt; int main(){ return 0; } </code></pre> <p>And here are some of errors:</p> <pre><code>In file included from hello.cpp:1: In file included from C:\Program Files\Microsoft Visual Studio 10.0\VC\include\algorithm:6: In file included from C:\Program Files\Microsoft Visual Studio 10.0\VC\include\memory:987: In file included from C:\Program Files\Microsoft Visual Studio 10.0\VC\include\intrin.h:24: In file included from H:/LLVM/build/bin/Debug/../lib/clang/3.3/include\immintrin.h:32: In file included from H:/LLVM/build/bin/Debug/../lib/clang/3.3/include\xmmintrin.h:988: H:/LLVM/build/bin/Debug/../lib/clang/3.3/include\emmintrin.h:1384:22: error: expected expression return (__m128)__in; ^ H:/LLVM/build/bin/Debug/../lib/clang/3.3/include\emmintrin.h:1390:23: error: expected expression return (__m128i)__in; ^ H:/LLVM/build/bin/Debug/../lib/clang/3.3/include\emmintrin.h:1396:23: error: expected expression return (__m128d)__in; ^ </code></pre> <p>Complete output from Clang: <a href="http://pastebin.com/qi87K8qr" rel="nofollow">http://pastebin.com/qi87K8qr</a></p> <p>Clang tries to use MSVC headers but it doesn't work. Maybe I should use libc++ or libstdc++ instead, but how to do that?</p> <p><strong>Note</strong> I'm not interested in precompiled clang binaries</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload