<P>Sebastian<BR></P>
<P>Thanks for your reply. I have tried to use STL header of tdm gcc 4.5.1, I don't have gcc 4.2.0 currently, in Mingw and link with ld. The normal STL string, vector, list etc work well. However a simple test case which is pasted below with iostream still can not work. The ld will report can not find external function  _dso_handle and _cxa_atexit. I have used -E option to find where it comes from. It seems LLVM compiler generate them. Some libraries are missed I guess. Could you help me check it?  Or could you help paste the compiler verbose output with -v? Or I have to use gcc 4.2.x?</P>
<P> </P>
<P>By the way, which linker is recommended to use on Windows? MingW GNU ld or MSVC link? My LLVM is built with VS2005.</P>
<P> </P>
<P>#include <string><BR>#include <iostream></P>
<P>using namespace std;<BR>int main()<BR>{<BR>    string str="test";<BR>    cout << str;    <BR>}<BR></P>
<P>------------------------------------------------<BR>--Zhanglin<BR>----- Original Message -----<BR>From: Sebastian Redl <sebastian.redl@getdesigned.at><BR>To: cfe-dev@cs.uiuc.edu<BR>Subject: Re: [cfe-dev] How to use STL with clang++?<BR>Date: 2010-12-23 16:28:49<BR><BR>On 23.12.2010 04:11, way_lzl@sina.com wrote:<BR>><BR>> Hello all<BR>><BR>> Anyone can help me use STL with clang++? My LLVM+Clang was compiled <BR>> with MSVC8 on Windows7. then I found \Microsoft Visual Studio <BR>> 8\VC\include is set as the default header file searching path. But c++ <BR>> with STL will report errors as below:<BR>><BR>><BR>There's more than one STL in this world. There's GCC's STL (libstdc++), <BR>which Clang fully supports up to version 4.2. There's Dinkumware's STL, <BR>a variant of which is shipped by Microsoft, which Clang does not yet <BR>support, since it uses lots of MS-specific extensions. There's also <BR>STLport, an independent project. You don't turn MS's STL to STLport, you <BR>replace the MSSTL with STLport when you switch to it. I assume Clang <BR>would support STLport, but you'd have to adapt the STLport configuration <BR>to recognize and correctly configure Clang. Or maybe someone already <BR>did; try googling.<BR><BR>We've got two or three people working on making MS's various headers <BR>work in Clang, but this stuff takes time.<BR><BR>Sebastian<BR><BR>_______________________________________________<BR>cfe-dev mailing list<BR>cfe-dev@cs.uiuc.edu<BR><A href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target=_blank>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</A><BR><BR></P>