[Qt-creator] debugging
Tom Deblauwe
tom at metalnight.be
Mon Nov 3 16:58:34 CET 2008
André Pönitz wrote:
> Basically yes. For "other" code you get the "C style view of the world" ;-}
>
auch! :)
That is really unfortunate, it was a feature I was desperate for.
> However, there should be code like
>
> #include <qglobal.h>
> int qtGhVersion = QT_VERSION;
> #if (QT_VERSION >= 0x040400)
>
> in gdbmacros.cpp to avoid compilation of that part. This check was added
> pretty late in the process. Is it missing in your case?
>
It is not missing, but after some investigation, I've seen what the
problem is. I have an external library for my project, which doesn't use
Qt at all. I am compiling it using qmake, but have added "CONFIG -= qt"
to it's .pro file to compile it without linking to Qt. So when
compiling, the Qt include directories are not added to the g++ command
line, but gdbmacros.cpp is added. So gdbmacros.cpp doesn't compile of
course.
Maybe adding a scope to the "-after" lines would solve it? something
like you would use in .pro files:
-after "qt { SOURCES*=........../gdbmacros.cpp }"
Best regards,
Tom,
More information about the Qt-creator-old
mailing list