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