
Originally Posted by
joyer83
Hmm, maybe the moc file generation rules have gone out of sync...
Try updating them, by first removing one letter from the Q_OBJECT macro (e.g. Q_OBJEC) and then save the header file. Now the mocing rules should have been automatically removed. Then fix the macro and save again, now the rules should have been added automatically.
Then try compiling again.
Thanks for your answer. I try to compile - nothing.

Originally Posted by
Santosh Reddy
looks like namespace is not being included in release mode.
function "tr(char const *,char const *)" is being searched in namespace "TelEngine", Are you sure tr() exists in "TelEngine" namespace
Thanks for your answer. Hm how can it be that in debug mode some function is part of namespace but in release this function is't?
Look like you are right. I have some LNK2019 message "anonymous namespace" in another project
customtext.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void * __thiscall TelEngine::QtCustomWidget::qt_metacast(char const *)" (__imp_?qt_metacast@QtCustomWidget@TelEngine@@UAEPAXPBD@Z) referenced in function "public: virtual void * __thiscall `anonymous namespace'::CustomTextEdit::qt_metacast(char const *)" (?qt_metacast@CustomTextEdit@?A0x2fb7e806@@UAEPAXPBD@Z)
customtext.
obj : error LNK2019
: unresolved external symbol
"__declspec(dllimport) public: virtual int __thiscall TelEngine::QtCustomWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (__imp_?qt_metacall@QtCustomWidget@TelEngine@@UAEHW4Call@
QMetaObject@@HPAPAX@Z
) referenced in function
"public: virtual int __thiscall `anonymous namespace'::CustomTextEdit::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CustomTextEdit@?A0x2fb7e806@@UAEHW4Call@
QMetaObject@@HPAPAX@Z
)customtext.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct QMetaObject const TelEngine::QtCustomWidget::staticMetaObject" (__imp_?staticMetaObject@QtCustomWidget@TelEngine@@2UQMetaObject@@B) referenced in function "void __cdecl `dynamic initializer for 'public: static struct QMetaObject const `anonymous namespace'::CustomTextEdit::staticMetaObject''(void)" (??__E?staticMetaObject@CustomTextEdit@?A0x2fb7e806@@2UQMetaObject@@B@@YAXXZ)
customtext.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void * __thiscall TelEngine::QtCustomWidget::qt_metacast(char const *)" (__imp_?qt_metacast@QtCustomWidget@TelEngine@@UAEPAXPBD@Z) referenced in function "public: virtual void * __thiscall `anonymous namespace'::CustomTextEdit::qt_metacast(char const *)" (?qt_metacast@CustomTextEdit@?A0x2fb7e806@@UAEPAXPBD@Z)
customtext.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall TelEngine::QtCustomWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (__imp_?qt_metacall@QtCustomWidget@TelEngine@@UAEHW4Call@QMetaObject@@HPAPAX@Z) referenced in function "public: virtual int __thiscall `anonymous namespace'::CustomTextEdit::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CustomTextEdit@?A0x2fb7e806@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
customtext.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct QMetaObject const TelEngine::QtCustomWidget::staticMetaObject" (__imp_?staticMetaObject@QtCustomWidget@TelEngine@@2UQMetaObject@@B) referenced in function "void __cdecl `dynamic initializer for 'public: static struct QMetaObject const `anonymous namespace'::CustomTextEdit::staticMetaObject''(void)" (??__E?staticMetaObject@CustomTextEdit@?A0x2fb7e806@@2UQMetaObject@@B@@YAXXZ)
To copy to clipboard, switch view to plain text mode
Bookmarks