[cfe-dev] How to use STL with clang++?
Sebastian Redl
sebastian.redl at getdesigned.at
Thu Dec 23 00:28:49 PST 2010
On 23.12.2010 04:11, way_lzl at sina.com wrote:
>
> Hello all
>
> Anyone can help me use STL with clang++? My LLVM+Clang was compiled
> with MSVC8 on Windows7. then I found \Microsoft Visual Studio
> 8\VC\include is set as the default header file searching path. But c++
> with STL will report errors as below:
>
>
There's more than one STL in this world. There's GCC's STL (libstdc++),
which Clang fully supports up to version 4.2. There's Dinkumware's STL,
a variant of which is shipped by Microsoft, which Clang does not yet
support, since it uses lots of MS-specific extensions. There's also
STLport, an independent project. You don't turn MS's STL to STLport, you
replace the MSSTL with STLport when you switch to it. I assume Clang
would support STLport, but you'd have to adapt the STLport configuration
to recognize and correctly configure Clang. Or maybe someone already
did; try googling.
We've got two or three people working on making MS's various headers
work in Clang, but this stuff takes time.
Sebastian
More information about the cfe-dev
mailing list