[Qt-interest] "#ifdef unix" usage problem in header file for moc file
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed Dec 9 16:41:54 CET 2009
navid navid wrote on Wednesday, December 09, 2009 4:19 PM:
> Hello,
>
> when I include a signal definition in header file of sampleclass.cpp:
> #ifdef unix
> void sampleSignal(int ireport);
> #endif
At the time of moc'cing, are you sure you have 'unix' defined? That is, do you have an explicit
DEFINES += unix
in your *.pro file?
(And I remember that in earlier versions of Qt moc did not evaluate #ifdefs at all. But I think that was back in the Qt 3.x days ;)
Cheers, oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list