[Insight-users] QtImageViewer: link error

flockmock at gmail.com flockmock at gmail.com
Thu May 21 10:39:38 EDT 2009


hi,
I want to build the Qt test-application QtImageViewer from InsightApplications/Auxiliary and I get the following error:

Linking CXX executable QtSlicer
CMakeFiles/QtSlicer.dir/QtGlSliceView.cxx.o: In function `~QtGlSliceView':
/home/florian/coding/c++/qimage_test/QtImageViewer/QtGlSliceView.cxx:98: undefined reference to `vtable for QtGlSliceView'
/home/florian/coding/c++/qimage_test/QtImageViewer/QtGlSliceView.cxx:98: undefined reference to `vtable for QtGlSliceView'
/home/florian/coding/c++/qimage_test/QtImageViewer/QtGlSliceView.cxx:98: undefined reference to `vtable for QtGlSliceView'
/home/florian/coding/c++/qimage_test/QtImageViewer/QtGlSliceView.cxx:98: undefined reference to `vtable for QtGlSliceView'
/home/florian/coding/c++/qimage_test/QtImageViewer/QtGlSliceView.cxx:98: undefined reference to `vtable for QtGlSliceView'
CMakeFiles/QtSlicer.dir/QtGlSliceView.cxx.o:/home/florian/coding/c++/qimage_test/QtImageViewer/QtGlSliceView.cxx:98: more undefined references to `vtable for QtGlSliceView' follow
collect2: ld returned 1 exit status
make[2]: *** [QtSlicer] Error 1

I am using ITK and InsightApplications 3.12.0 and Qt-4.5.1. Does anyone know, how to avoid this? 

thanks, florian


More information about the Insight-users mailing list