PDA

View Full Version : QtCreator and old builds - why does it stay stuck with old config?



been_1990
16th August 2010, 23:59
Come and go QtCreator stays with old build configuration stuck, and no matter what I do it wont update itself.
Ex:

app.pro
app.cpp -> Compiler error...
app.h

app.cpp -> Error fixed -> still same error ..
app.cpp -> Deleted -> still same error..
app.cpp -> Write any gibberish -> still same error

No matter what I do to my code(that at some point produced an error), it still seems to use the old files of the project. If the error was with class EditMe(), even if I delete every mention to that class from the project, still the same old errors come out.
This keeps happening to me, with Win Vista, Win 7, Win 7 64bit.

This makes me go crazy every time. Must be the fifth time already.:crying:
Anyone know anything about this?

tbscope
17th August 2010, 05:40
What happens if you rebuild the project or run qmake again?

been_1990
17th August 2010, 12:40
Even if I clean the build, rebuild, delete ui_* and moc files, still the same errors. Even if qmake is run. (Just did it..)
This is an example of the error:


debug\moc_xml.cpp:44: error: 'staticMetaObject' is not a member of 'QDomDocument'
File not found:debug\moc_xml.cpp

been_1990
20th August 2010, 13:57
Somehow it's all back to normal. I just deleted all extra files and opened the project again.