You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

!nkubus

Beginner

  • "!nkubus" started this thread

Posts: 17

Location: Montreal

Occupation: Internet Solution Manager @ Bell

  • Send private message

1

Tuesday, June 21st 2005, 1:12pm

KIO::listRecursive is giving me headhake

I'm trying to list recursively the content of a folder, but KIO:listRecursive is giving me some headhake, it always tell:

/home/frank/kamerawizard/src/kamerawizard.cpp:47: undefined reference to `KIO::listRecursive(KURL const&, bool, bool)'

here is the part of my code where i'm calling it:

Source code

1
2
3
4
5
6
7
   #include <kio/job.h>
   ...
   ...
   ...
   QString sPath = "file:/home/frank/Pictures";
   KURL *url = new KURL(sPath);	
   KIO::ListJob *lFiles = KIO::listRecursive(*url);


I Have tried to call it different ways like this:
KIO::ListJob *lFiles = KIO::listRecursive(*url,true,true);
KIO::ListJob *lFiles = KIO::listRecursive(*url,true);
KIO::ListJob *lFiles = KIO::listRecursive(url,true,true);
etc.

but nothing works :(

anybody have experienced the same error ?

i'm on kde 3.4.1
on kubuntu
amd 2200+

Thank you very much for your help :)

Latem

Beginner

Posts: 31

Location: New Brunswick, Canada

Occupation: Student/Programmer

  • Send private message

2

Tuesday, June 21st 2005, 2:26pm

Are you linking with -lkio. If you are doing it from KDevelop in the make target options, under the Libraries tag, in "Link libraries outside the project (LDADD)", you can add $(LIB_KIO).

That's all I can think of for now.

Latem
The march of progress:
C:
printf("%10.2f", x);
C++:
cout << setw(10) << setprecision(2) << showpoint << x;
Java:
java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance();
formatter.setMinimumFractionDigits(2);
formatter.setMaximumFractionDigits(2);
String s = formatter.format(x);
for (int i = s.length(); i < 10; i++) System.out.print(' ');
System.out.print(s);

!nkubus

Beginner

  • "!nkubus" started this thread

Posts: 17

Location: Montreal

Occupation: Internet Solution Manager @ Bell

  • Send private message

3

Tuesday, June 21st 2005, 3:19pm

Thanks, I wil try this toight, now i'm stuck at work.