ich bin Anfänger und nutze das Buch : QT4.6 GUI Entwicklung mit C++. Diese Version ist nicht mehr aktuell, aber besseres habe ich gerade nicht.
Es gibt ein Hello World Beispiel. Dieses konnte ich in meiner Linux Vmaschine problemlos bauen, aber unter Windows bekomme ich eine Fehlermeldung,
die mir nichts sagt.
Code: Alles auswählen
// beispiele/hallo/main.cpp
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QPushButton hello("Hallo Welt");
hello.resize(100, 30);
hello.show();
return app.exec();
}
Vielen Dank für eure Hilfe.C:\qtsrc>qmake
C:\qtsrc>mingw32-make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/qtsrc'
Makefile.Release:62: *** missing separator (did you mean TAB instead of 8 spaces
?). Stop.
mingw32-make[1]: Leaving directory 'C:/qtsrc'
Makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2