[cfe-dev] Error in included files
AndyFor
borucki.andrzej at gmail.com
Sat Oct 12 05:58:32 PDT 2013
I have successfully compiled llvm and clang under Mingw and Windows XP. In
Code::Blocks I created first simple project:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
iostream is in C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\, I add this
directory and others to compiler direcories.
When I build, I have errors:
C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar|66|error: no
member named 'mbstate_t' in the global namespace|
log:
clang++.exe -Weverything -fexceptions -g -I"C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++" -I"C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\mingw32"
-I"C:\Program Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1"
-c c:\temp\aa\main.cpp -o obj\Debug\main.o
In file included from c:\temp\aa\main.cpp:1:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\iostream:40:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\ostream:40:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\ios:39:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\iosfwd:42:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\bits/postypes.h:42:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar:46:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1\wchar.h:32:
In file included from C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1/cwchar:34:
C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar:66:11:
error: no member named 'mbstate_t' in the global namespace
using ::mbstate_t;
C:\Program
Files\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\cwchar:141:11:
error: no member named 'wint_t' in the global namespace
using ::wint_t;
etc
--
View this message in context: http://clang-developers.42468.n3.nabble.com/Error-in-included-files-tp4035083.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev
mailing list