LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   KDevelop: undefined reference (https://www.linuxquestions.org/questions/programming-9/kdevelop-undefined-reference-360058/)

bastl 09-04-2005 07:56 AM

KDevelop: undefined reference
 
I get :
Code:

undefined reference to `KFileDialog::getOpenFileName(QString const&, QString const&, QWidget*, QString const&)'
at linking.

In my others projects this static function is known by the linker (ld) but not in this. Can anybody give me a hint ?

Mara 09-04-2005 11:56 AM

Are you sure you have #include <kfiledialog.h> ?

bastl 09-05-2005 09:52 AM

Yesss !!!

I did have such behavior once ago and on different static functions of KDE.
.
Code:

KMessageBox::messageBox( 0, KMessageBox::Error, QString, QString )
is in the same class and that works;

May be this function is only defined within KMainWindow ?


All times are GMT -5. The time now is 11:57 AM.