<div dir="ltr">On Sat, Oct 12, 2013 at 5:58 AM, AndyFor <span dir="ltr"><<a href="mailto:borucki.andrzej@gmail.com" target="_blank">borucki.andrzej@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have successfully compiled llvm and clang under Mingw and Windows XP. In<br>
Code::Blocks I created first simple project:<br>
#include <iostream><br>
<br>
using namespace std;<br>
<br>
int main()<br>
{<br>
cout << "Hello world!" << endl;<br>
return 0;<br>
}<br>
iostream is in C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\, I add this<br>
directory and others to compiler direcories.<br>
When I build, I have errors:<br>
C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar|66|error: no<br>
member named 'mbstate_t' in the global namespace|<br>
<br>
log:<br>
clang++.exe -Weverything -fexceptions -g -I"C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++" -I"C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\mingw32"<br>
-I"C:\Program Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1"<br></blockquote><div><br></div><div>These -I arguments are very suspicious. You generally shouldn't (need to) give -I arguments pointing at the standard library; your problem is almost certainly something wrong with your include paths.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-c c:\temp\aa\main.cpp -o obj\Debug\main.o<br>
In file included from c:\temp\aa\main.cpp:1:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\iostream:40:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\ostream:40:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\ios:39:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\iosfwd:42:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\bits/postypes.h:42:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar:46:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1\wchar.h:32:<br>
In file included from C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1/cwchar:34:<br>
C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar:66:11:<br>
error: no member named 'mbstate_t' in the global namespace<br>
using ::mbstate_t;<br>
C:\Program<br>
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar:141:11:<br>
error: no member named 'wint_t' in the global namespace<br>
using ::wint_t;<br>
etc<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/Error-in-included-files-tp4035083.html" target="_blank">http://clang-developers.42468.n3.nabble.com/Error-in-included-files-tp4035083.html</a><br>
Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><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>
</blockquote></div><br></div></div>