[cfe-dev] [Windows] __uuidof support?
rnk at google.com
Wed Dec 4 09:36:12 PST 2013
What C/C++ runtime are you trying to use, a mingw variant or one of
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
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
- pass by value of certain kinds of objects
- debug info
- member pointer support is a bit weak
On Wed, Dec 4, 2013 at 5:14 AM, Fredrik Orderud <forderud at gmail.com> wrote:
> It seems like there is no support for the "__uuidof" operator in clang.
> This operator is heavily used in conjunction to COM on Windows.
> Attempting to build a small Direct3D example code (attached) with "clang
> -v test.cpp -o test.exe" yields the following error:
> test.cpp:8:37: error: cannot yet mangle expression type CXXUuidofExpr
> _COM_SMARTPTR_TYPEDEF(ID3D10Device, __uuidof(ID3D10Device));
> c:\Program Files (x86)\Microsoft Visual Studio
> expanded from macro '_COM_SMARTPTR_TYPEDEF'
> typedef _COM_SMARTPTR<_COM_SMARTPTR_LEVEL2<Interface, &IID> > \
> Clang was built from trunk yesterday.
> 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
> Thanks in advance,
> Fredrik Orderud
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev