[Qt-interest] conflict with boost signals when running moc

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Mon Mar 22 10:35:07 CET 2010


Peter wrote on Saturday, March 20, 2010 1:08 AM:

> Ah so the moc executable takes the - DQT_NO_KEYWORDS arguement also...

Yes, in fact moc now evaluates also all the #defines in your code (since Qt 4 I think) before compiling the *.h file. But off course moc needs to know the values, as to evaluate the #defines properly. We had this discussion in another thread just recently.

With the -D switch you define your values, just as you would in your IDE or *.pro file (DEFINES += ...). I guess that when you would use *.pro files that qmake is so clever to provide all DEFINES to the moc step as arguments automatically, but have not tried...

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list