Boost logo

Boost-Build :

From: Felix E. Klee (felix.klee.jamboost_at_[hidden])
Date: 2003-01-16 04:41:08

On Thursday 16 January 2003 09:23 am, Vladimir Prus wrote:
> David Abrahams wrote:
> > "Felix E. Klee" <felix.klee.jamboost_at_[hidden]> writes:
> >>exe hello : hello.cpp : <qt>on ;
> >>
> >>Of course, I see that it might be problematic for Jam to decide which
> >> header files need to be moc'ed and which ones are "external" (after all
> >> one doesn't want to moc the standard QT include files).
> >
> > Can't we use a different extension for these? They aren't standard
> > C++ after all...
> They are! Those header files are processed by ordinary C++ compiler. The
> trick is that QT's special things, (Q_OBJECT, slots, signals) are #defined
> to be empty.

OK, but maybe that's just to avoid complications when people don't want to use
the moc. I agree with David that those files are not standard C++. In
addition, Trolltech itself speaks of "C++ Extensions", eg.
The Meta Object Compiler, moc among friends, is the program which handles
Qt's C++ extensions

> Anyway, we can use special suffix for those files. There's still a problem
> with renaming them if you add/remove the Q_OBJECT macro call.

But then, they are treated just like other source files that, of course, have
to be added. If one has to add .h header files to the source files list, then
that's kind of weird and inconsistent, IMHO.


To contact me personally don't reply but send email to 
felix DOT klee AT inka DOT de

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at