CodeLite QT4 -- a full example please...
Posted: Sat Jan 02, 2010 3:47 pm
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 CodeLite, project building reports the following error messages:
It seems to tell that some of the functions declared but not defined. (by google http://www.google.co.uk/search?q=+undef ... =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
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 CodeLite, project building reports the following error messages:
./Debug/objcrop.o: In function `objCrop':
/workspace/objcrop/objcrop.cpp:10: undefined reference to `vtable for objCrop'
/workspace/objcrop/objcrop.cpp:10: undefined reference to `vtable for objCrop'
/workspace/objcrop/objcrop.cpp:10: undefined reference to `vtable for objCrop'
/workspace/objcrop/objcrop.cpp:10: undefined reference to `vtable for objCrop'
./Debug/objcrop.o: In function `~objCrop':
/workspace/objcrop/objcrop.cpp:36: undefined reference to `vtable for objCrop'
./Debug/objcrop.o:/home/jiapei/MyPrograms/codelite/aam/objcrop/objcrop.cpp:36: more undefined references to `vtable for objCrop' follow
./Debug/objcrop.o: In function `objCrop::tr(char const*, char const*)':
/workspace/objcrop/objcrop.h:23: undefined reference to `objCrop::staticMetaObject'
../utils/Debug/libutils.a(ImageView.o): In function `CImageView':
/workspace/utils/src/ImageView.cpp:13: undefined reference to `vtable for CImageView'
/workspace/utils/src/ImageView.cpp:13: undefined reference to `vtable for CImageView'
/workspace/utils/src/ImageView.cpp:13: undefined reference to `vtable for CImageView'
/workspace/utils/src/ImageView.cpp:13: undefined reference to `vtable for CImageView'
../utils/Debug/libutils.a(ImageView.o): In function `~CImageView':
/workspace/utils/src/ImageView.cpp:23: undefined reference to `vtable for CImageView'
../utils/Debug/libutils.a(ImageView.o):/workspace/utils/src/ImageView.cpp:23: more undefined references to `vtable for CImageView' follow
collect2: ld returned 1 exit status
make[1]: *** [Debug/objcrop] Error 1
make[1]: Leaving directory `/workspace/objcrop'
make: *** [All] Error 2
----------Build Ended----------
1 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=+undef ... =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