[Development] Qt-5.1, qglobal.h and PIC detection

Liang Qi cavendish.qi at gmail.com
Wed Nov 6 01:19:26 CET 2013


On Wednesday 06 November 2013 12:17:56 Christian Gagneraud wrote:
> Hi,
>
> I'm using CLang build-analize tool, and when I switched from Qt 4.8 to
> Qt 5.1 (insalled from Qt project's download area), I got a Qt #error,
> basically the code is built with -fPIC, but CLang doesn't define a PIC
> macro, so the build fails due to a check in qglobal.h (see details below).
> ...

That's a bug in scan-build script, already fixed in clang upstream.  More
details in
https://bugreports.qt-project.org/browse/QTBUG-33698

Regards,
Liang

-- 
http://www.qiliang.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131106/acb75afd/attachment.html>


More information about the Development mailing list