Actually, this looks very similar to Bug 5172: <a href="http://llvm.org/bugs/show_bug.cgi?id=5172">http://llvm.org/bugs/show_bug.cgi?id=5172</a>.<br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 2:38 PM, Sam Polopo <span dir="ltr"><<a href="mailto:sam.polopo@gmail.com" target="_blank">sam.polopo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br><br>Is there a version of MinGW with a compatible STL for Clang? 
Thus far I've had no luck with Clang parsing header files such as 
<string> and <vector>. The following source<br><br>#include <vector><br>
<br>using namespace std;<br><br>int main()<br>{<br>    vector<int> k;<br>    return 0;<br>}<br><br>generates the following errors using the most recent svn and MinGW 5.1.6.<br><br>In file included from a.cpp:1:<br>


In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/vector:66:<br>
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/stl_algobase.h:67:<br>Y:\MinGW-5.1.6\include\c++\3.4.5/cstdlib(175) :  error: no member named 'atoll' in the global namespace<br>  using ::atoll;<br>        ~~^<br>



Y:\MinGW-5.1.6\include\c++\3.4.5/cstdlib(195) :  error: no member named 'atoll' in namespace '__gnu_cxx'<br>  using __gnu_cxx::atoll;<br>        ~~~~~~~~~~~^<br>In file included from a.cpp:1:<br>In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/vector:66:<br>



In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/stl_algobase.h:70:<br>In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/iosfwd:49:<br>In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/postypes.h:45:<br>



In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar:50:<br>In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/ctime:50:<br>Y:\MinGW-5.1.6\include/time.h(187) :  error: unknown type name '__MINGW_IMPORT'<br>



__MINGW_IMPORT char     *tzname[2];<br>^<br>Y:\MinGW-5.1.6\include/time.h(187) :  error: expected unqualified-id<br>__MINGW_IMPORT char     *tzname[2];<br>               ^<br>In file included from a.cpp:1:<br>In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/vector:66:<br>



In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/stl_algobase.h:70:<br>In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/iosfwd:49:<br>In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/postypes.h:45:<br>



Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(146) :  error: no member named 'fgetws' in the global namespace<br>  using ::fgetws;<br>        ~~^<br>Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(148) :  error: no member named 'fputws' in the global namespace<br>



  using ::fputws;<br>        ~~^<br>Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(152) :  error: no member named 'getwc' in the global namespace<br>  using ::getwc;<br>        ~~^<br>Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(153) :  error: no member named 'getwchar' in the global namespace<br>



  using ::getwchar;<br>        ~~^<br>Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(158) :  error: no member named 'putwc' in the global namespace<br>  using ::putwc;<br>        ~~^<br>Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(159) :  error: no member named 'putwchar' in the global namespace<br>



  using ::putwchar;<br>        ~~^<br>10 errors generated.<br><br>Thanks,<br><font color="#888888">Sam<br>
</font></blockquote></div><br>