Helo,<br><br>I built Clang using MinGW.  Everything seemed to go well in the build.  <br><br>However, when I ran a simple test (compilation of the following using 'clang t.c'):<br><br><pre class="code">#include <stdio.h><br>
int main(int argc, char **argv) { printf("hello world\n"); }<br></pre><br clear="all">I get these messages:<br><pre class="code"><br>C:\Tools\build.llvm\testcomp>clang t.c<br>In file included from t.c:1:<br>c:/mingw/include/stdio.h:571:9: error: unknown type name 'wint_t'<br>
_CRTIMP wint_t __cdecl __MINGW_NOTHROW  fgetwc (FILE*);<br>        ^<br>c:/mingw/include/stdio.h:571:16: error: expected identifier or '('<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  fgetwc (FILE*);<br>               ^<br>
In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>
In file included from t.c:1:<br>c:/mingw/include/stdio.h:572:9: error: unknown type name 'wint_t'<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  fputwc (wchar_t, FILE*);<br>        ^<br>c:/mingw/include/stdio.h:572:16: error: expected identifier or '('<br>
_CRTIMP wint_t __cdecl __MINGW_NOTHROW  fputwc (wchar_t, FILE*);<br>               ^<br>In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>
#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>In file included from t.c:1:<br>c:/mingw/include/stdio.h:573:9: error: unknown type name 'wint_t'<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  ungetwc (wchar_t, FILE*);<br>
        ^<br>c:/mingw/include/stdio.h:573:16: error: expected identifier or '('<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  ungetwc (wchar_t, FILE*);<br>               ^<br>In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>
c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>In file included from t.c:1:<br>c:/mingw/include/stdio.h:584:9: error: unknown type name 'wint_t'<br>
_CRTIMP wint_t __cdecl __MINGW_NOTHROW  getwc (FILE*);<br>        ^<br>c:/mingw/include/stdio.h:584:16: error: expected identifier or '('<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  getwc (FILE*);<br>               ^<br>
In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>
In file included from t.c:1:<br>c:/mingw/include/stdio.h:585:9: error: unknown type name 'wint_t'<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  getwchar (void);<br>        ^<br>c:/mingw/include/stdio.h:585:16: error: expected identifier or '('<br>
_CRTIMP wint_t __cdecl __MINGW_NOTHROW  getwchar (void);<br>               ^<br>In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>
#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>In file included from t.c:1:<br>c:/mingw/include/stdio.h:587:9: error: unknown type name 'wint_t'<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  putwc (wint_t, FILE*);<br>
        ^<br>c:/mingw/include/stdio.h:587:16: error: expected identifier or '('<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  putwc (wint_t, FILE*);<br>               ^<br>In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>
c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>In file included from t.c:1:<br>c:/mingw/include/stdio.h:589:9: error: unknown type name 'wint_t'<br>
_CRTIMP wint_t __cdecl __MINGW_NOTHROW  putwchar (wint_t);<br>        ^<br>c:/mingw/include/stdio.h:589:16: error: expected identifier or '('<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  putwchar (wint_t);<br>               ^<br>
In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>
In file included from t.c:1:<br>c:/mingw/include/stdio.h:630:9: error: unknown type name 'wint_t'<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  _fgetwchar (void);<br>        ^<br>c:/mingw/include/stdio.h:630:16: error: expected identifier or '('<br>
_CRTIMP wint_t __cdecl __MINGW_NOTHROW  _fgetwchar (void);<br>               ^<br>In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>
#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>In file included from t.c:1:<br>c:/mingw/include/stdio.h:631:9: error: unknown type name 'wint_t'<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  _fputwchar (wint_t);<br>
        ^<br>c:/mingw/include/stdio.h:631:16: error: expected identifier or '('<br>_CRTIMP wint_t __cdecl __MINGW_NOTHROW  _fputwchar (wint_t);<br>               ^<br>In file included from t.c:1:<br>In file included from c:/mingw/include/stdio.h:19:<br>
c:/mingw/include/_mingw.h:145:20: note: instantiated from:<br>#  define __cdecl  __attribute__ ((__cdecl__))<br>                   ^<br>In file included from t.c:1:<br>c:/mingw/include/stdio.h:636:9: error: unknown type name 'wint_t'<br>
_CRTIMP wint_t __cdecl __MINGW_NOTHROW  fgetwchar (void);<br>        ^<br>fatal error: too many errors emitted, stopping now [-ferror-limit=]<br>20 errors generated.<br><br><br></pre><br>-- <br>Duncan McQueen<br>OpenThinking Systems, LLC<br>
<a href="http://www.openthinkingsystems.com">http://www.openthinkingsystems.com</a><br>