Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, September 2002
qmake - DQT_NO_DEBUG


Message 1 in thread

Hi,

I just noticed that qmake generates Makefiles with -DQT_NO_DEBUG in
it... will that have consequences? (eg not being able to use qDebug() or
something)
I can't find anything about it in qmake.conf, and there's no qmake
manpage...

Is there some way to change this?

Thanks


-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part


Message 2 in thread

On Wed, 04 Sep 2002 17:27:18 +0000, Hans Schippers wrote:

> Hi,
> 
> I just noticed that qmake generates Makefiles with -DQT_NO_DEBUG in
> it... will that have consequences? (eg not being able to use qDebug() or
> something)
> I can't find anything about it in qmake.conf, and there's no qmake
> manpage...
> 
> Is there some way to change this?

qmake defines QT_NO_DEBUG if it's configured to build in release mode,
which is the default.  It alters some stuff in Qt (not sure what), but
qDebug still works.

It seems it's hardcoded into qmake in release mode, so if you don't want
it defined, you'll have to set "CONFIG += debug" or edit the Makefile
afterwards.


Dan