samgoud_b
31st March 2008, 10:50
Hi,
I have recently installed QT on windows.
I am trying to build SvgViewer example came along with the installation using Visual studio C++.
Doing so, I am getting the following Linker errors:
mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall MainWindow::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MainWindow@@UAEHW4Call@QMetaObject@@ HPAPAX@Z)
mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall MainWindow::qt_metacast(char const *)" (?qt_metacast@MainWindow@@UAEPAXPBD@Z)
mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall MainWindow::metaObject(void)const " (?metaObject@MainWindow@@UBEPBUQMetaObject@@XZ)
mainwindow.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const MainWindow::staticMetaObject" (?staticMetaObject@MainWindow@@2UQMetaObject@@B)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SvgRasterView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SvgRasterView@@UAEHW4Call@QMetaObjec t@@HPAPAX@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall SvgRasterView::qt_metacast(char const *)" (?qt_metacast@SvgRasterView@@UAEPAXPBD@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall SvgRasterView::metaObject(void)const " (?metaObject@SvgRasterView@@UBEPBUQMetaObject@@XZ)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SvgNativeView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SvgNativeView@@UAEHW4Call@QMetaObjec t@@HPAPAX@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall SvgNativeView::qt_metacast(char const *)" (?qt_metacast@SvgNativeView@@UAEPAXPBD@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall SvgNativeView::metaObject(void)const " (?metaObject@SvgNativeView@@UBEPBUQMetaObject@@XZ)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SvgGLView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SvgGLView@@UAEHW4Call@QMetaObject@@H PAPAX@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall SvgGLView::qt_metacast(char const *)" (?qt_metacast@SvgGLView@@UAEPAXPBD@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall SvgGLView::metaObject(void)const " (?metaObject@SvgGLView@@UBEPBUQMetaObject@@XZ)
svgwindow.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const SvgGLView::staticMetaObject" (?staticMetaObject@SvgGLView@@2UQMetaObject@@B)
Debug/svgviewer.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
Can nyone help me to solve these errors?
Thanks in advance,
Sampath
I have recently installed QT on windows.
I am trying to build SvgViewer example came along with the installation using Visual studio C++.
Doing so, I am getting the following Linker errors:
mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall MainWindow::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MainWindow@@UAEHW4Call@QMetaObject@@ HPAPAX@Z)
mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall MainWindow::qt_metacast(char const *)" (?qt_metacast@MainWindow@@UAEPAXPBD@Z)
mainwindow.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall MainWindow::metaObject(void)const " (?metaObject@MainWindow@@UBEPBUQMetaObject@@XZ)
mainwindow.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const MainWindow::staticMetaObject" (?staticMetaObject@MainWindow@@2UQMetaObject@@B)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SvgRasterView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SvgRasterView@@UAEHW4Call@QMetaObjec t@@HPAPAX@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall SvgRasterView::qt_metacast(char const *)" (?qt_metacast@SvgRasterView@@UAEPAXPBD@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall SvgRasterView::metaObject(void)const " (?metaObject@SvgRasterView@@UBEPBUQMetaObject@@XZ)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SvgNativeView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SvgNativeView@@UAEHW4Call@QMetaObjec t@@HPAPAX@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall SvgNativeView::qt_metacast(char const *)" (?qt_metacast@SvgNativeView@@UAEPAXPBD@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall SvgNativeView::metaObject(void)const " (?metaObject@SvgNativeView@@UBEPBUQMetaObject@@XZ)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SvgGLView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SvgGLView@@UAEHW4Call@QMetaObject@@H PAPAX@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall SvgGLView::qt_metacast(char const *)" (?qt_metacast@SvgGLView@@UAEPAXPBD@Z)
svgview.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall SvgGLView::metaObject(void)const " (?metaObject@SvgGLView@@UBEPBUQMetaObject@@XZ)
svgwindow.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const SvgGLView::staticMetaObject" (?staticMetaObject@SvgGLView@@2UQMetaObject@@B)
Debug/svgviewer.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
Can nyone help me to solve these errors?
Thanks in advance,
Sampath