programing help

Ted Fischer ka8sep at sbcglobal.net
Sun Sep 14 03:06:55 BST 2008


I want to write a program for kde. I have played with the win API so it 
shouldn't be hard.

I copied the hello world from kde tutorials for the main,cpp and ran the 
next command

ted at ted-tower:~$ g++ main.cpp -o tutoral1 -I$QTDIR/include/Qt 
-I$QTDIR/include/QtCore -I$QTDIR/ -I$KDEDIR/include/KDE 
-I$KDEDIR/include -L$KDEDIR/lib -L$QTDIR/lib -lQtCore -lQtGui -lkdeui 
-lkdecore

and then i get the following errors

main.cpp:1:23: error: Application: No such file or directory
main.cpp:2:22: error: KAboutData: No such file or directory
main.cpp:3:24: error: KCmdLineArgs: No such file or directory
main.cpp:4:23: error: KMessageBox: No such file or directory
main.cpp:39:2: warning: no newline at end of file
main.cpp: In function ‘int main(int, char**)’:
main.cpp:8: error: ‘KAboutData’ was not declared in this scope
main.cpp:8: error: expected `;' before ‘aboutData’
main.cpp:32: error: ‘KCmdLineArgs’ has not been declared
main.cpp:32: error: ‘aboutData’ was not declared in this scope
main.cpp:33: error: ‘KApplication’ was not declared in this scope
main.cpp:33: error: expected `;' before ‘app’
main.cpp:34: error: ‘KGuiItem’ was not declared in this scope
main.cpp:34: error: expected `;' before ‘yesButton’
main.cpp:37: error: ‘KMessageBox’ has not been declared
main.cpp:37: error: ‘i18n’ was not declared in this scope
main.cpp:38: error: ‘yesButton’ was not declared in this scope

any ideas?



More information about the kubuntu-users mailing list