Bennett Helm wrote:
> g++-dp-4.2 -DHAVE_CONFIG_H -I. -I. -I../../../src -DQT_CLEAN_NAMESPACE
> -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src
> -I../../../src/frontends -I../../../images
> -I/Users/bennett/lyx/gcc-4.0/Qt-4.2.1-install/include
> -I/Users/bennett/lyx/gcc-4.0/Qt-4.2.1-install/include/QtCore
> -I/Users/bennett/lyx/gcc-4.0/Qt-4.2.1-install/include/QtGui
> -I../../../boost -I../../../src/frontends/controllers -Wextra -Wall -g
> -Os -MT QLPainter.lo -MD -MP -MF .deps/QLPainter.Tpo -c QLPainter.C -o
> QLPainter.o
> QLPainter.C: In constructor
> 'lyx::frontend::QLPainter::QLPainter(QWidget*)':
> QLPainter.C:39: error: no matching function for call to
> 'lyx::frontend::QLPainter::begin(QWidget*&)'
> /Users/bennett/lyx/gcc-4.0/Qt-4.2.1-install/include/QtGui/qpainter.h:80:
> note: candidates are: bool QPainter::begin(QPaintDevice*)
> make[7]: *** [QLPainter.lo] Error 1
> 
> Bennett
> 
> 

Maybe this is the reason:

When developing with the the cmake build system,
precompiled headers are used and all <QtCore>/<QtGui>
headers are included by default. So there is no
error if the header is not included, but the scons/auto
builds will fail.

So we must include the header also if we get nor error
with cmake/msvc!

Peter

Reply via email to