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>Sam<br>