<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm getting compile errors because size_t is getting redefined. My
"forced include file" starts with:<br>
<br>
<font face="Courier New, Courier, monospace">#if
BUILDING_FOR_WINDOWS<br>
#define NOMINMAX<br>
<br>
/* deal with the fact that windef.h also defines BOOL */<br>
#define BOOL WINBOOL<br>
<br>
#include <windows.h><br>
#include <intrin.h><br>
<br>
#undef BOOL<br>
#endif<br>
</font><br>
Looking at the preprocessor expansion of a typical .cpp file, I see
that crtdefs.h defines size_t like this:<br>
<br>
<font face="Courier New, Courier, monospace">typedef unisgned
__int64 size_t;<br>
</font><br>
Later on, <LLVM>\lib\clang\3.6.0\includes\stddef.h defines it
as:<br>
<br>
<font face="Courier New, Courier, monospace">typedef unsigned int
size_t;<br>
</font><br>
Is there some other magic I need to do to get these to work?<br>
<br>
I'm also seeing a bunch of errors like this having to do with
intrinsics:<br>
<br>
<font face="Courier New, Courier, monospace">1> In file included
from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\algorithm:6:<br>
1> In file included from C:\Program Files (x86)\Microsoft
Visual Studio 12.0\VC\include\xmemory:6:<br>
1> In file included from C:\Program Files (x86)\Microsoft
Visual Studio 12.0\VC\include\xmemory0:909:<br>
1> In file included from C:\Program Files
(x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\intrin.h:34:<br>
1> In file included from C:\Program Files
(x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\x86intrin.h:29:<br>
1> In file included from C:\Program Files
(x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\immintrin.h:28:<br>
1>C:\Program Files
(x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\mmintrin.h(52,40):
error : cannot initialize a parameter of type
'__attribute__((__vector_size__(2 * sizeof(int)))) int' (vector of
2 'int' values) with an rvalue of type '__v2si' (aka 'int')<br>
1> return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);<br>
1> ^~~~~~~~~~~<br>
</font><br>
I suspect that these might be caused by the same thing as the size_t
problem...<br>
<br>
Regards,<br>
Eric Mader<br>
<br>
<br>
<br>
</body>
</html>