<div dir="ltr"><div>Hi I've only just noticed this discussion. I don't have time to add to it / follow it now but I will tomorrow..</div><div><br></div><div>In the mean time, here's a few things I know that might be useful, not in answer to any particular question.</div>
<div><br></div><div>libc++ doesn't yet compile fully with MS's cl compiler or visual studio. That's because of library and language issues.</div><div><br></div><div>cl can't handle some language constructs like static constant member variables that g++ and clang++ support. That's a show stopper. When cl.exe gets constexpr this will likely be solvable.</div>
<div><br></div><div>MSVC doesn't have a full c-library, so libc++ on it's own isn't that useful if using MS's libraries (as opposed to mingw compatible versions). If you build libc++ with Visual Studio, it will fail because some functions libc++ declares clash with MS versions. This could be fixed but I haven't bothered because until cl supports the missing language constructs necessary libc++ still won't build.</div>
<div><br></div><div>libc++ needs pthread support, MSVC's C library doesn't have that. An initial pthread library was contributed a while back, possibly by Nico (though I may be wrong), but it was withdrawn or never followed up on. I never hard back when I inquired why. mingw does have pthread support.</div>
<div><br></div><div>libc++ expects a C library atomic support (I think) on which it bases it's own atomic<> support. MS don't provide that.</div><div><br></div><div>libc++ does build on Windows with g++ (or did until very recently if not) and mingw and does build with clang++ and mingw. If you have problems using g++ and libc++ on windows and it's a std::string inline function error, Marshall is aware of it, but I don't know the latest.</div>
<div><br></div><div>clang-cl might be something to try if you're used to MS's cl, it might have better default options for use on Windows than clang++ but I haven't tried it.</div><div><br></div><div>Sorry, gotta run now. Will try to follow this more tomorrow. Hope this helps.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 9, 2014 at 1:19 AM, Dennis Luehring <span dir="ltr"><<a href="mailto:dl.soluz@gmx.net" target="_blank">dl.soluz@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 08.05.2014 14:59, schrieb Yaron Keren:<div><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
Why use the combination of: clang compiler & Visual C++ link & Visual C++ C<br>
headers & libcxx C++ headers ?<br>
</blockquote>
<br></div>
i thought this would be the base for an MinGW free libc++/clang on Windows<br>
clang as my c++ compiler using an libc++ build with clang based on msvc c-runtime headers/lib<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>