[cfe-dev] clang and Windows
Kovarththanan Rajaratnam
krj at rajaratnam.dk
Fri Jun 19 13:41:25 PDT 2009
Hello,
Anton Korobeynikov wrote:
> Hello,
>
>> Can you name a few? I'd like to try out some simple program just to get the hang of it.
> I think they were some programs from LLVM's testsuite.
>
>> Duly noted :). I presume you were using MinGW?
> Yes.
Thanks. I've now installed MinGW but I'm seing the following issue
because clang's stddef.h defines wchar_t which clashes with MinGW:
$ clang-cc test.c
In file included from test.c:1:
In file included from C:/mingw/include/windows.h:47:
In file included from C:/mingw/include/windef.h:252:
C:/mingw/include/winnt.h:99:24: error: typedef redefinition with
different types ('unsigned short' vs 'typeof (*L"")' (aka 'short'))
typedef unsigned short wchar_t;
^
In file included from test.c:1:
In file included from C:/mingw/include/windows.h:47:
In file included from C:/mingw/include/windef.h:252:
In file included from C:/mingw/include/winnt.h:36:
In file included from C:/mingw/include/string.h:24:
s:/git/llvm-win32/bin/lib/clang/1.0/include/stddef.h:32:26: note:
previous definition is here
typedef __typeof__(*L"") wchar_t;
Any suggestions?
^
--
Best regards,
Kovarththanan Rajaratnam
More information about the cfe-dev
mailing list