You are not logged in.

1

Saturday, April 16th 2005, 8:21am

kdevelop kio

hello,

I have again problems with kdevelop and linking against libraries.
I would like to use KIO so I added (to a library noinst) in the Target Options under "LIBADD" $(LIB_KIO).
But this does not seem to be enough (I also tried to add $(LIB_KDEUTILS) too)

I have following code:
KIO::TransferJob *job = KIO::get(url);

when I compile with this code i get:
error: `get' is not a member of `KIO'

when I compile with
KIO::TransferJob *job;

I get
ar: -lkio: No such file or directory

So I cannot really figure out the problem...

Could please anyone tell me howto correct link against KIO (or even other libraries) with kdevelop...

thx in advance!

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Saturday, April 16th 2005, 4:28pm

The first error seems like a compiler error.
Do you have the proper header included?

Source code

1
#include <kio/job.h>


Cheers,
_
Qt/KDE Developer
Debian User

3

Sunday, April 17th 2005, 9:34am

hmmm now it works :)

thank you!

in all the programs I looked up the code - I didn*t see this line :(

cheers

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Monday, April 18th 2005, 2:45pm

Maybe they included a header which in turn include job.h

This is poorly documented, I had to check my local CVS checkout of kdelibs to find the header :(

Cheers,
_
Qt/KDE Developer
Debian User

5

Monday, April 18th 2005, 4:52pm

yes this might be the problem :)
but I really enjoy (trying to) developing for kde :)

cheers