automoc problem

Michael Olbrich michael-olbrich at web.de
Thu Aug 2 12:59:05 CEST 2007


On Thu, Aug 02, 2007 at 10:25:04AM +0200, Matthias Kretz wrote:
> On Thursday 02 August 2007, Michael Olbrich wrote:
> > I'm not sure if this is a bug or intentional, but the kde4 moc magic is
> > missing some of my classes. Basically I have two QObject classes, one
> > defined in the header file and the other in the corresponding source
> > file. The created moc file only contains the stuff for the second class.
> > Example attached.
> > No problems when both classes are defined in the same file.
> 
> Does it work if you add foo.h add
> kde4_moc_headers(foo foo.h)
> 
> Does it work if you add
> #include "moc_foo.cpp" to foo.cpp

Either way works. In both cases moc_foo.cpp is generated and linked via
foo_automoc.cpp and foo.cpp respectively.

Thanks,

michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070802/9cffb8c6/attachment.pgp 


More information about the Kde-buildsystem mailing list