Hello, this is my first post and as usual it starts with a problem.
This is my first day of looking at QT (QT4) and I'm quite excited about it but I haven't really got very far.
(I'm using Ubuntu Linux and QT4 which I downloaded yesterday to evaluate.)
I wonder if anyone can help.
My problem is that when I compile a simple hello world I get: "QApplication: No such file or directory" and the same for the QPushButton file header.
The cpp file has:
#include <QApplication>
#include <QPushButton>
The code is very simple - I copied from a tutorial.
My PATH variable includes the following:
/usr/local/Trolltech/Qt-4.2.2/include:/usr/local/Trolltech/Qt-4.2.2/:/usr/local/Trolltech/Qt-4.2.2/bin
Both of the header files are actually in .../include/QtGui/ so for the for the compiler to find them I would imagine that that path should be in $PATH - but that seems like far too much work really. So I must be missing something that enables the complier to look in sub directories. Or perhaps I'm missing something else that is obvious to everyone other than me.
Any help will be greatly appreciated.
thanks a lot
john
Bookmarks