Citation
auteur
#include <qstring.h>
#include <kapp.h>
#include <klined.h>
int main (int argc, char *argv[])
{
KApplication khello(argc, argv, "khello");
KLineEdit *helloeditor = new KLineEdit(0);
QString hellostring("Hello!");
helloeditor->setText(hellostring);
helloeditor->show();
khello.setMainWidget(helloeditor);
return khello.exec();
}
Citation
auteur
g++ khello.cpp -I$KDEDIR/include -I$QTDIR/include -L$KDEDIR/lib -L$QTDIR/lib -lkdeui -lkdecore -ldl -lqt
Citation
auteur
khello.cpp:3:20: klined.h: No such file or directory
khello.cpp: In function `int main(int, char**)':
khello.cpp:7: warning: `__comp_ctor' is deprecated (declared at
/opt/kde/include/kapplication.h:198)
khello.cpp:8: error: `KLineEdit' undeclared (first use this function)
khello.cpp:8: error: (Each undeclared identifier is reported only once for each
function it appears in.)
khello.cpp:8: error: `helloeditor' undeclared (first use this function)
khello.cpp:8: error: parse error before `(' token