Sorry for my previous mail which is incomplete.... I pressed send button by mistake.... Do excuse my for my small mistake...
I have a small problem here... I was writing a small application which used XML using the classes in Qt's XML Module... I faced some linking problem. I thought I I had made some mistake... Then I read Qt documentation again.... But soon I realized that I was doing verything right.... So I took Qt's own example from the Qt tutorials, you can get that tutorial example here online... :
http://doc.trolltech.com/3.1/outliner-example.html
The compilation I did was using this statement:
g++ -lqt -L$QTDIR/lib -I. -I$QTDIR/include -o a.out main.cpp outlinetree.cpp
The error I got was this :
------------------------------------------------------------------ /tmp/ccx2pBby.o: In function `OutlineTree::OutlineTree(QString, QWidget *, char const *)': /tmp/ccx2pBby.o(.text+0x22): undefined reference to `OutlineTree virtual table' /tmp/ccx2pBby.o(.text+0x2c): undefined reference to `OutlineTree::QPaintDevice virtual table' /tmp/ccx2pBby.o: In function `OutlineTree::~OutlineTree(void)': /tmp/ccx2pBby.o(.text+0x788): undefined reference to `OutlineTree virtual table' /tmp/ccx2pBby.o(.text+0x792): undefined reference to `OutlineTree::QPaintDevice virtual table' collect2: ld returned 1 exit status ----------------------------------------------------------------
I never saw these kinda errors previously.... Why is it so ? Please help me out, I need help very very urgently...
Thanking you in advance...
Akhilesh