Problems with kdevelop-1.4

Bernd Gehrmann bernd at physik.hu-berlin.de
Fri Jan 19 10:53:26 GMT 2001


On Fri, 19 Jan 2001, Chema wrote:
> 2- I created a simple app that use KRun.
>     If I write->
>       KRun::shellQuote(Prog->text());
>     I see ->
>       kaviso.cpp:47: no matching function for call to `KRun::shellQuote
>       (QString)'
>       /opt/kde/include/krun.h:149: candidates are: static void
>       KRun::shellQuote(QString &) <near match>
>     And If I write -> 
>       QString comando = Prog->text();
>       KRun::shellQuote(comando);
>     I see ->
>       undefined reference to 'KRun::shellQuote(QString &)'
>     NOTE: Prog is a QLabel.
> Where is the problem?

a) KRun::shellQuote()'s argument is both an in and out argument. So
you can't give it a temporary as argument.
b) If you use KRun, you must link with $(LIB_KIO)
c) If it's just for the quoting, you can as well use KProcess::quote()
which is in kdecore

Bernd.


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list