I just installed the 64-bit versions of Clang 3.8.1 and MinGW 5.1.0 on my 
64-bit Windows 10 system.  Everything seemed to install fine but I'm getting 
lots of errors, not warnings, on the contents of the standard header files. I 
first set my INCLUDE path to where my Microsoft VS 2015 headers are located, 
then changed it to where my mingw64 headers are located but there were content 
errors in both cases. In the mingw64 case the following is a typical error:

C:\mingw64\x86_64-w64-mingw32\include\stdio.h:179:86: error: expected ';' after 
top level declarator int __cdecl __mingw_sprintf (char * __restrict__ , const 
char * __restrict__ , ...) __MINGW_NOTHROW;

whereas in the VS2015 case the following is typical:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\limits:611:33: 
error: use of undeclared identifier
'char16_t'
template<> class numeric_limits<char16_t>

I also tried the -std=c++98 through -std=c++14 switches to no avail. The 
respective headers work fine with the gcc and cl compilers. Is there some other 
set of headers I should be using that is specifically tailored to Clang itself 
or am I simply doing something wrong?

The file I am compiling is named test.cpp and it merely contains:
#include <iostream>
int main()
{
  std::cout << "Hello world!\n";
  return 0;
}

The command line I am using is: clang++ -c test.cpp

Thanks,
Ray
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to