Hi:
Here comes an additional question.
My C++/QT4 project runs ok in both Eclipse Galileo and Netbeans 6.8
However, after porting some down to CodeBlocks, project building reports the following error messages:
obj/Debug/objcrop.o||In function `objCrop':|
/home/jiapei/MyPrograms/codeblocks/aam/objcrop/objcrop.cpp|10|undefined reference to `vtable for objCrop'|
/home/jiapei/MyPrograms/codeblocks/aam/objcrop/objcrop.cpp|10|undefined reference to `vtable for objCrop'|
/home/jiapei/MyPrograms/codeblocks/aam/objcrop/objcrop.cpp|10|undefined reference to `vtable for objCrop'|
/home/jiapei/MyPrograms/codeblocks/aam/objcrop/objcrop.cpp|10|undefined reference to `vtable for objCrop'|
obj/Debug/objcrop.o||In function `~objCrop':|
/home/jiapei/MyPrograms/codeblocks/aam/objcrop/objcrop.cpp|36|undefined reference to `vtable for objCrop'|
obj/Debug/objcrop.o:/home/jiapei/MyPrograms/codeblocks/aam/objcrop/objcrop.cpp|36|more undefined references to `vtable for objCrop' follow|
obj/Debug/objcrop.o||In function `objCrop::tr(char const*, char const*)':|
/home/jiapei/MyPrograms/codeblocks/aam/objcrop/objcrop.h|23|undefined reference to `objCrop::staticMetaObject'|
../utils/bin/Debug/libutils.so||undefined reference to `vtable for CDataPlot'|
../utils/bin/Debug/libutils.so||undefined reference to `CDataPlot::staticMetaObject'|
../utils/bin/Debug/libutils.so||undefined reference to `vtable for CImageView'|
../utils/bin/Debug/libutils.so||undefined reference to `vtable for CAudioAnalysisView'|
||=== Build finished: 11 errors, 0 warnings ===|
It seems to tell that some of the functions declared but not defined. (by google http://www.google.co.uk/search?q=+undefined+reference+to+%60vtable+for&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-GB:official&client=firefox-a )
It's strange that both CodeLite and CodeBlocks report such kind of staffs, but Eclipse / Netbeans /Visual Studio won't .
I know it is only GCC compiler that reports this error. Anything I need to take care of this??
In my case
objcrop is a QT4 project, which depends on my own static library libutils.a
The above error messages seem to tell there are some undefined functions in libutils.a
I double checked project utils, and nothing undefined !!!
What should I do next? Please do help.
Best Regards
JIA