我使用的是Windows下的Qt4开源版+MingW,还用到了一个叫Qwt的库
编译报错的部分是:
[code:1]
tmp\obj\release_shared\myplot.o(.text+0x194):myplot.cpp: undefined reference to
`vtable for MyPlot'
tmp\obj\release_shared\myplot.o(.text+0x19b):myplot.cpp: undefined reference to
`vtable for MyPlot'
tmp\obj\release_shared\myplot.o(.text+0x934):myplot.cpp: undefined reference to
`vtable for MyPlot'
tmp\obj\release_shared\myplot.o(.text+0x93b):myplot.cpp: undefined reference to
`vtable for MyPlot'
collect2: ld returned 1 exit status
[/code:1]