programing help

Nils Kassube kassube at gmx.net
Sun Sep 14 06:54:09 UTC 2008


Ted Fischer wrote:
> 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

It looks like you don't have the necessary -dev packages installed. The 
package "kdebase-dev" should be a good candidate for a start, but look 
for other packages with a name ending with "-dev" to install.


Nils




More information about the kubuntu-users mailing list