Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libc++, Clang and LLVM on Windows

I have installed http://sourceforge.net/projects/clangonwin/ on my Windows system. My questions are:

  1. It seems that a STD library is missing. How do I install one?
  2. How can I integrate this in VC++, Eclipse, CodeLite, or Code::Blocks?
like image 743
user5262 Avatar asked Feb 25 '14 16:02

user5262


People also ask

Can you use LLVM on Windows?

LLVM fully supports the COFF object file format, which is compatible with all other existing Windows toolchains.

Can Clang be used on Windows?

On Windows, it's easy to install the Clang tools. Just grab the “Clang compiler for Windows,” an optional component of the “Desktop development with C++” workload. This will install everything you need to develop with Clang on Windows. You can also install your own copy of Clang/LLVM or even build it from source.

Which libc does Clang use?

On Windows the default arrangement requires Microsoft's Visual C libraries to be installed. It seems that it's also possible to use Clang on Windows with MinGW's libraries though. One can also use clang with Microsoft Visual Studio C and C++ libraries.

Is LLVM and Clang the same?

Clang operates in tandem with the LLVM compiler back end and has been a subproject of LLVM 2.6 and later. As with LLVM, it is free and open-source software under the Apache License 2.0 software license. Its contributors include Apple, Microsoft, Google, ARM, Sony, Intel, and AMD.


1 Answers

Quote from the project page:

if you want to compile C + + and uses the Microsoft C + + STL, please use the CL diver modes, namely: - dirver-mode = cl and disable RTTI;".

That answers your question. Best to interpret its accuracy for the way it reads, the unintentional hint of death by drowning is in fact appropriate. This page gives a very decent insight what more work needs to be done before it is close to usable.

like image 108
Hans Passant Avatar answered Sep 16 '22 20:09

Hans Passant