<div dir="ltr">What C/C++ runtime are you trying to use, a mingw variant or one of Microsoft's?<div><br></div><div>We support __uuidof in the Microsoft C++ ABI, but not the Itanium C++ ABI.  The easiest way to use the Microsoft C++ ABI support is with the clang-cl frontend:</div>
<div><a href="http://clang.llvm.org/docs/UsersManual.html#clang-cl">http://clang.llvm.org/docs/UsersManual.html#clang-cl</a><br></div><div><br></div><div>However, the Microsoft C++ ABI support is still really immature, so you might want to stick with mingw.  In the Microsoft C++ ABI, Clang lacks support for:</div>
<div>- pass by value of certain kinds of objects</div><div>- RTTI</div><div>- exceptions</div><div>- debug info</div><div>- member pointer support is a bit weak</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Dec 4, 2013 at 5:14 AM, Fredrik Orderud <span dir="ltr"><<a href="mailto:forderud@gmail.com" target="_blank">forderud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>It seems like there is no support for the "__uuidof" operator in clang. This operator is heavily used in conjunction to COM on Windows.<br><br>Attempting to build a small Direct3D example code (attached) with "clang -v test.cpp -o test.exe" yields the following error:<br>

---<br>test.cpp:8:37: error: cannot yet mangle expression type CXXUuidofExpr<br>_COM_SMARTPTR_TYPEDEF(ID3D10Device, __uuidof(ID3D10Device));<br>                                    ^~~~~~~~~~~~~~~~~~~~~~<br>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\comdef.h:296:60:<br>

note:<br>      expanded from macro '_COM_SMARTPTR_TYPEDEF'<br>    typedef _COM_SMARTPTR<_COM_SMARTPTR_LEVEL2<Interface, &IID> > \<br>                                                           ^<br>

---<br></div>Clang was built from trunk yesterday.<br><br></div>Can anyone tell me if there are any plans to implement "__uuidof" support in the near future? If not, should I register an Bugzilla issue on the problem?<br>

<br></div>Thanks in advance,<br>Fredrik Orderud<br></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>