<font size=2 face="sans-serif">Hello Clang-World,</font>
<br>
<br><font size=2 face="sans-serif">I tried to compile a simple DirectXMath-Programm
with the new clang-cl.</font>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=100% style="border-style:solid solid solid solid;border-color:#000000;border-width:1px 1px 1px 1px;padding:0px 0px;"><font size=1 color=blue face="}">int</font><font size=1 face="}">
main(</font><font size=1 color=blue face="}">int</font><font size=1 face="}">
</font><font size=1 color=#808080 face="}">argc</font><font size=1 face="}">,
</font><font size=1 color=blue face="}">char</font><font size=1 face="}">
**</font><font size=1 color=#808080 face="}">argv</font><font size=1 face="}">)</font>
<br><font size=1 face="}">{</font>
<br><font size=1 face="}">        DirectX::</font><font size=1 color=#4181c0 face="}">XMVECTOR</font><font size=1 face="}">
data{120.0f, 240.0f};</font>
<br>
<br><font size=1 face="}">        data </font><font size=1 color=#008080 face="}">=</font><font size=1 face="}">
DirectX::XMVectorMultiply(data, DirectX::</font><font size=1 color=#4181c0 face="}">XMVECTOR</font><font size=1 face="}">{2.0f,
3.6f});</font>
<br>
<br><font size=1 face="}">        printf(</font><font size=1 color=#a11f12 face="}">"Result:
{%f, %f}\n"</font><font size=1 face="}">, DirectX::XMVectorGetX(data),
DirectX::XMVectorGetY(data));</font>
<br><font size=1 face="}">        system(</font><font size=1 color=#a11f12 face="}">"PAUSE"</font><font size=1 face="}">);</font>
<br>
<br><font size=1 face="}">        </font><font size=1 color=blue face="}">return</font><font size=1 face="}">
0;</font>
<br><font size=1 face="}">}</font></table>
<br>
<br><font size=2 face="sans-serif">But the compiler fails with >20 Errors,
like:<br>
"</font><font size=1 face="}">1>  In file included from main.cpp:1:</font>
<br><font size=1 face="}">1>  In file included from C:\Program
Files (x86)\Windows Kits\8.1\Include\um\DirectXMath.h:1884:</font>
<br><font size=1 face="}">1>C:\Program Files (x86)\Windows Kits\8.1\Include\um/DirectXMathVector.inl(412,13):
error : member reference base type 'DirectX::FXMVECTOR' (aka 'const __m128')
is not a structure or union</font>
<br><font size=1 face="}">1>      return V.m128_f32[i];</font><font size=2 face="sans-serif">"</font>
<br>
<br><font size=2 face="sans-serif">I know, that windows defines __m128
in a different way than clang, but is there no way to use DirectXMath or
DirectX with Clang? Will there one day a way to do so?</font>
<br>
<br><font size=2 face="sans-serif">Kind regards</font>
<br><font size=2 face="sans-serif">Björn<br>
Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816, USt.ID-Nr.
DE 114 165 789<br>
Geschäftsführer: Hiroshi Kawamura, Dr Hiroshi Nakamura, Markus Bode, Heiko
Lampert, Takashi Nagano, Takeshi Fukushima.</font>