[cfe-dev] [Windows] __uuidof support?
dl.soluz at gmx.net
Wed Dec 4 05:23:13 PST 2013
#include <d3d11.h> + macro
#define __uuidof(NAME) IID_##NAME
could help - but not perfect
Am 04.12.2013 14:14, schrieb Fredrik Orderud:
> 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
More information about the cfe-dev