Qt-interest Archive, June 2007
Linker errors in VS 2003
Message 1 in thread
I'm close to porting a Qt application from version 3 to 4, but have run
across some linker errors. The last 100 yards, I think this is. Does
anyone know what might be the culprit on these, what library file(s) I'm
missing?
SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall SettingsDialog::qt_metacall(enum
QMetaObject::Call,int,void * *)"
(?qt_metacall@SettingsDialog@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
virtual void * __thiscall SettingsDialog::qt_metacast(char const *)"
(?qt_metacast@SettingsDialog@@UAEPAXPBD@Z)
SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
virtual struct QMetaObject const * __thiscall
SettingsDialog::metaObject(void)const "
(?metaObject@SettingsDialog@@UBEPBUQMetaObject@@XZ)
SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
static struct QMetaObject const SettingsDialog::staticMetaObject"
(?staticMetaObject@SettingsDialog@@2UQMetaObject@@B)
SettingsDialog.obj : error LNK2019: unresolved external symbol "protected:
void __thiscall SettingsDialog::change(class QString const &)"
(?change@SettingsDialog@@IAEXABVQString@@@Z) referenced in function
"private: void __thiscall SettingsDialog::saveChanges(void)"
(?saveChanges@SettingsDialog@@AAEXXZ)
--
[ signature omitted ]
Message 2 in thread
It seems that all your unresolved symbols belong to the MOC files generated
automaticlaly by QT. i have faced with similary problems before.
this might help :
try making the QT project file again by <qmake -project>
and generating the vcproj again by : qmake -tp vc <project name.pro>
this would generate a .vcproj file from which you could generate a new
solution.
this would add the required moc files to your solution and the unresolved
symbols would be compiled and generated automaticlly.
hope this helps
cheers
Harsh
On 6/26/07, Jim Bancroft <sdfsk@xxxxxxx> wrote:
>
> I'm close to porting a Qt application from version 3 to 4, but have run
> across some linker errors. The last 100 yards, I think this is. Does
> anyone know what might be the culprit on these, what library file(s) I'm
> missing?
>
> SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
> virtual int __thiscall SettingsDialog::qt_metacall(enum
> QMetaObject::Call,int,void * *)"
> (?qt_metacall@SettingsDialog@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
>
> SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
> virtual void * __thiscall SettingsDialog::qt_metacast(char const *)"
> (?qt_metacast@SettingsDialog@@UAEPAXPBD@Z)
>
> SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
> virtual struct QMetaObject const * __thiscall
> SettingsDialog::metaObject(void)const "
> (?metaObject@SettingsDialog@@UBEPBUQMetaObject@@XZ)
>
> SettingsDialog.obj : error LNK2001: unresolved external symbol "public:
> static struct QMetaObject const SettingsDialog::staticMetaObject"
> (?staticMetaObject@SettingsDialog@@2UQMetaObject@@B)
>
> SettingsDialog.obj : error LNK2019: unresolved external symbol "protected:
> void __thiscall SettingsDialog::change(class QString const &)"
> (?change@SettingsDialog@@IAEXABVQString@@@Z) referenced in function
> "private: void __thiscall SettingsDialog::saveChanges(void)"
> (?saveChanges@SettingsDialog@@AAEXXZ)
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]