[cfe-dev] Qt 4.7.3 moc and libc++

Ashok Nalkund ashoknn at qualcomm.com
Mon Sep 10 13:47:49 PDT 2012


Hi All,
   I've compiled Qt 4.7.3 (yes, its an older version but 4.8 has a few 
issues) with clang + libc++. When I compile one of my resource files 
using Qt's moc, it reports:
> ...x86_64-centos-linux-clang-libcxx/include/QtCore/QObjec:0: Warning: No relevant classes found. No output generated.

I traced it to the presence of libc++ include path in the compilation:

> -Ix86_64-centos-linux-clang-libcxx/include

which is the location of libc++ headers. If I remove that include path, 
moc works fine and generates the expected output.

   Has anybody seen this? I'm posting to the Qt's forums also to see if 
they know about this.

thanks,
ashok




More information about the cfe-dev mailing list