rakydude
June 23rd, 2009, 10:40 AM
Hi all,
I'm having problems compiling QT-programs on my Kubuntu 9.04.
qt4-dev-tools are installed.
The test-file I'm trying to compile looks like this:
#include <QThread>
int main() { return 0; }
When trying to compile:
~$ gcc -o test test.cpp
test.cpp:1:19: error: QThread: No such file or directory
~$ g++ -o test test.cpp
test.cpp:1:19: error: QThread: No such file or directory
Same problem if I try to include any other QT-files.
However, the files does exist:
~$ find /usr/include | grep QThread
/usr/include/qt4/QtCore/QThreadStorage
/usr/include/qt4/QtCore/QThread
/usr/include/qt4/QtCore/QThreadStorageData
/usr/include/qt4/QtCore/QThreadPool
~$ find /usr/include | grep qthread
/usr/include/qt4/Qt/qthreadstorage.h
/usr/include/qt4/Qt/qthread.h
/usr/include/qt4/Qt/qthreadpool.h
/usr/include/qt4/QtCore/qthreadstorage.h
/usr/include/qt4/QtCore/qthread.h
/usr/include/qt4/QtCore/qthreadpool.h
Does anyone have a clue as of what might be wrong?
I'm having problems compiling QT-programs on my Kubuntu 9.04.
qt4-dev-tools are installed.
The test-file I'm trying to compile looks like this:
#include <QThread>
int main() { return 0; }
When trying to compile:
~$ gcc -o test test.cpp
test.cpp:1:19: error: QThread: No such file or directory
~$ g++ -o test test.cpp
test.cpp:1:19: error: QThread: No such file or directory
Same problem if I try to include any other QT-files.
However, the files does exist:
~$ find /usr/include | grep QThread
/usr/include/qt4/QtCore/QThreadStorage
/usr/include/qt4/QtCore/QThread
/usr/include/qt4/QtCore/QThreadStorageData
/usr/include/qt4/QtCore/QThreadPool
~$ find /usr/include | grep qthread
/usr/include/qt4/Qt/qthreadstorage.h
/usr/include/qt4/Qt/qthread.h
/usr/include/qt4/Qt/qthreadpool.h
/usr/include/qt4/QtCore/qthreadstorage.h
/usr/include/qt4/QtCore/qthread.h
/usr/include/qt4/QtCore/qthreadpool.h
Does anyone have a clue as of what might be wrong?