PDA

View Full Version : QTimer not found



al_mawt
23rd February 2008, 18:15
Hi@all

I've tried to compile this (http://doc.trolltech.com/4.3/tutorial-t11.html) programm...
but the compiler gives me a error:


...Cannons\cannonfield.cpp|1|QDateTime: No such file or directory|
...Cannons\cannonfield.cpp|4|QTimer: No such file or directory|

I hope you can help me...

P.S.: I'm sorry for my English... I'm from Germany

jpn
23rd February 2008, 18:20
How did you install Qt? What commands did you take to compile the sample app? What does "qmake -v" output?

al_mawt
23rd February 2008, 18:51
I downloaded and installed QT 4.3.4 from the Trolltech website. I'm using the Code::Blocks IDE with GNU GCC compiler.
I just told Code::Blocks the location from QT and it worked...
The files QTimer.h and QDateTime.h exists...
But the compiler gives me a error
What should I do?
:confused:

jpn
23rd February 2008, 19:44
So, looks like it's a problem "how to setup Code::Blocks with Qt". You might want to search these or Code::Blocks forums. There have been some threads about setting up Code::Blocks with Qt. To assure your Qt installation functions, you could launch "Qt Command Prompt" from Start-menu and invoke command qmake & make in the project directory. This way it should compile fine.