This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Undefined reference to KWallet

Tags: None
(comma "," separated)
Noturno
Registered Member
Posts
3
Karma
0

Undefined reference to KWallet

Sun Aug 17, 2014 1:38 pm
I keep getting this undefined reference:

Code: Select all
error: undefined reference to `KWallet::Wallet::openWallet(QString const&, unsigned long long, KWallet::Wallet::OpenType)'


Source code :

Code: Select all
WId wid = 0;
    Wallet* wallet = Wallet::openWallet(Wallet::NetworkWallet(),wid,Wallet::Synchronous);


.pro file:

...
Code: Select all
LIBS += #-lgnome-keyring \
            -lglib-2.0 \
            -lkdecore \
            -lkdeui \
            -lkparts
   
    INCLUDEPATH += /usr/include/gnome-keyring-1 \
                   /usr/include/glib-2.0  \
                   /usr/lib/x86_64-linux-gnu/glib-2.0/include \
                   /usr/include/KDE

...

I think I have linked all required libs, don't know where the mistake could be. I use qmake and QtCreator IDE.

It gives undefined reference only for
Code: Select all
Wallet::openWallet()
Nothing for
Code: Select all
Wallet::NetworkWallet(), Wallet::hasFolder(),Wallet::createFolder()
... I don't know why it can't find reference only for one function.
Noturno
Registered Member
Posts
3
Karma
0
Well I found the problem. The problem is somehow in QT-Creator, when I built it myself, through Makefile, it worked.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]