Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-09-17 23:59:12

Pedro Ferreira wrote:
> Hi all,
> can someone please tell me how to use the moc compiler.
> What should I add to the sources? Looking at qt.jam, line 51, I'd expect to
> add a .h file, but that won't work.

That's really strange. When I go to examples-v2/qt and run "bjam", I get:

gcc.compile.c++ bin/gcc/debug/threading-multi/main-target-t7/main.o
gcc.compile.c++ bin/gcc/debug/threading-multi/main-target-t7/lcdrange.o
qt.moc bin/gcc/debug/threading-multi/main-target-t7/moc_lcdrange.cpp
gcc.compile.c++ bin/gcc/debug/threading-multi/main-target-t7/moc_lcdrange.o bin/gcc/debug/threading-multi/main-target-t7/t7

As you see, the 'h' file is mocced and moc's output is compiled. Could you try
that example? It will allow us to differentiate to problem specific to your
installation and problem specific to your Jamfile.

As a quick check: are you use you have <library>qt in requirements? That will
enable the moc generator.

- Volodya


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