Stein
0
Hallo,
ich will jetzt unter Linux auch ein wenig in Richtung Grafik gehen und hab dann gleich das alte ADDISON-WESLEY von meinem Bruder ausgegraben und mal versucht das ganze zu kompilieren.
und habe dann aber eine Haufen Fehlermeldungen bekommen, welche ich auf das Erscheinungdatum zurückführe(2001)
Jetzt wollte ich mal Frage, was ihr mir so empfehlt: GTK oder QT? Zudem würde ich gerne Empfehlungen von Tutorial zu GTK/QT hören. Ich hoffe ihr wisst da Bescheid.
gruß stein
ich will jetzt unter Linux auch ein wenig in Richtung Grafik gehen und hab dann gleich das alte ADDISON-WESLEY von meinem Bruder ausgegraben und mal versucht das ganze zu kompilieren.
#include <qapplication.h>
#include <qlabel.h>
int main(int argc, char **argv)
{
QApplication app(int argc, char **argv);
QLabel *l = new QLabel ("<H1>Hallo, Welt</H1>", 0);
l-> show();
app.setMainWidget (l);
return app.exec();
}
#include <qlabel.h>
int main(int argc, char **argv)
{
QApplication app(int argc, char **argv);
QLabel *l = new QLabel ("<H1>Hallo, Welt</H1>", 0);
l-> show();
app.setMainWidget (l);
return app.exec();
}
dawn@1[c++]$ g++ -I$QTDIR -lqt qtbuch.cpp
qtbuch.cpp:1:26: error: qapplication.h: No such file or directory
qtbuch.cpp:2:20: error: qlabel.h: No such file or directory
qtbuch.cpp:11:2: warning: no newline at end of file
qtbuch.cpp: In function 'int main(int, char**)':
qtbuch.cpp:6: error: 'QApplication' was not declared in this scope
qtbuch.cpp:6: error: expected `;' before 'app'
qtbuch.cpp:7: error: 'QLabel' was not declared in this scope
qtbuch.cpp:7: error: 'l' was not declared in this scope
qtbuch.cpp:7: error: expected type-specifier before 'QLabel'
qtbuch.cpp:7: error: expected `;' before 'QLabel'
qtbuch.cpp:9: error: 'app' was not declared in this scope
qtbuch.cpp:1:26: error: qapplication.h: No such file or directory
qtbuch.cpp:2:20: error: qlabel.h: No such file or directory
qtbuch.cpp:11:2: warning: no newline at end of file
qtbuch.cpp: In function 'int main(int, char**)':
qtbuch.cpp:6: error: 'QApplication' was not declared in this scope
qtbuch.cpp:6: error: expected `;' before 'app'
qtbuch.cpp:7: error: 'QLabel' was not declared in this scope
qtbuch.cpp:7: error: 'l' was not declared in this scope
qtbuch.cpp:7: error: expected type-specifier before 'QLabel'
qtbuch.cpp:7: error: expected `;' before 'QLabel'
qtbuch.cpp:9: error: 'app' was not declared in this scope
gruß stein