Announcement

Collapse
No announcement yet.

n00b question

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    n00b question

    i installed kdevelop and I am looking at doing some writing in c++ for KDE. I have played with the win API so this doesn't look bad.

    My dumb question is I'm doing the tutorials and what folder do i save the main.cpp at so I can cmake them?

    Ted

    #2
    Re: n00b question

    Ok, I ran kdedevlop and entered the tuturial saved it to my home dir, ran g++ and got this message

    ted@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
    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

    Ideas?

    Comment

    Working...
    X