Due to this change in FancyLineEdit.h:
http://www.lyx.org/trac/changeset/38963
I cannot compile LyX with Qt 4.7 anymore:

release\src\PersonalWordList.obj : warning LNK4042: object specified more than 
once; extras ignored
   Creating library release\lyx.lib and object release\lyx.exp
FancyLineEdit.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall lyx::frontend::IconButton::metaObject(void)
const " (?metaObject@IconButton@frontend@lyx@@UBEPBUQMetaObject@@XZ)
FancyLineEdit.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall lyx::frontend::IconButton::qt_metacast(char const *)" (?qt_meta cast@IconButton@frontend@lyx@@UAEPAXPBD@Z) FancyLineEdit.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall lyx::frontend::IconButton::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@IconButton@frontend@lyx@@UAEHW4Call@QMetaObject@@HPAPAX@Z) FancyLineEdit.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const lyx::frontend::IconButton::staticMetaObject" (?staticMetaObject@IconButton@frontend@lyx@@2UQMetaObject@@B) referenced in function "class lyx::frontend::IconButton * __cdecl qobject_cast<class lyx::frontend::IconButton *>(class QObject *)" (??$qobject_cast@PAVIconButton@frontend@lyx@@@@YAPAVIconButton@frontend@lyx@@PAVQObject@@@Z)
release\lyx.exe : fatal error LNK1120: 4 unresolved externals
scons: *** [release\lyx.exe] Error 1120
scons: building terminated because of errors.

Without the new #if QT_VERSION >= 0x040600 it compiles.

regards Uwe

Reply via email to