Now I recall what the problem was that I had: My code makes use of the Win32 API and that means pulling in Windows.h, which again pulls in some headers that make use of the force_inline thingy, which is not supported under Windows yet.<div>
<br></div><div>I guess if I stuck with portable code, I could probably use Clang for Windows.  Once again, I have to visit the thinking box and figure out what to do.</div><div><br></div><div>But thanks for the description of how to do this.  It is surely going to save both me and others a lot of time.</div>
<div><br><div class="gmail_quote">2012/5/25 Nathan Jeffords <span dir="ltr"><<a href="mailto:blunted2night@gmail.com" target="_blank">blunted2night@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I checkout LLVM and clang from SVN, then use CMake to generate project files for Visual Studio 2010 (I started with 2008). The LLVM project compiles successfully and gives me all the tools including Clang. For a few tests, I compile C++ code with Clang which if I need to I link, I use MinGW's ld passing all the relevant object files and libraries including correctly ordering the start-up code and such. <div>

<br></div><div><br></div></blockquote></div>
</div>