<div dir="ltr">This is <a href="https://bugs.llvm.org//show_bug.cgi?id=28250">https://bugs.llvm.org//show_bug.cgi?id=28250</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 9, 2017 at 11:21 PM, via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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">
<tbody><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(<wbr>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></td></tr></tbody></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\<wbr>DirectXMath.h:1884:</font>
<br><font size="1" face="}">1>C:\Program Files (x86)\Windows Kits\8.1\Include\um/<wbr>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><br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>