QMake/compilieren geht nicht...
Verfasst: 25. April 2009 12:22
Hi Leute!
Aus irgendeinem Grund kann ich keinen QT-Code mehr kompilieren und ich weiß nicht, warum.
Unter Eclipse mit der QT-Extension ist der build-Button grau. Wenn ich in QMake in der Console kompilieren möchte, dann spuckt er solche Fehler aus:
Was mache ich falsch? Ich bin echt schon am verzweifeln.
Aus irgendeinem Grund kann ich keinen QT-Code mehr kompilieren und ich weiß nicht, warum.
Unter Eclipse mit der QT-Extension ist der build-Button grau. Wenn ich in QMake in der Console kompilieren möchte, dann spuckt er solche Fehler aus:
Code: Alles auswählen
track.h:4:25: error: QtGui/QWidget: No such file or directory
track.h:5:17: error: QtGui: No such file or directory
main.cpp:4:24: error: QApplication: No such file or directory
main.cpp:5:19: error: QString: No such file or directory
In file included from main.cpp:1:
track.h:8: error: expected class-name before ‘{’ token
track.h:9: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
track.h:11: error: expected ‘;’ before ‘public’
track.h:16: error: ISO C++ forbids declaration of ‘QMenuBar’ with no type
track.h:16: error: expected ‘;’ before ‘*’ token
track.h:17: error: ISO C++ forbids declaration of ‘QMenu’ with no type
track.h:17: error: expected ‘;’ before ‘*’ token
track.h:18: error: ISO C++ forbids declaration of ‘QMenu’ with no type
track.h:18: error: expected ‘;’ before ‘*’ token
track.h:19: error: ISO C++ forbids declaration of ‘QMenu’ with no type
track.h:19: error: expected ‘;’ before ‘*’ token
main.cpp: In function ‘int main(int, char**)’: