[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] KProcess



Thomas Rasmussen wrote:
> 
> Jeg har et problem med at finde ud af hvordan KProcess virker!
> Jeg har prøvet at kompile følgende lille program:
> --------------------------------------------
>      #include <kprocess.h>
>      void main()
>      {
>        KProcess proc;
>        proc << "ls" << "-l" << "/root";
>        proc.start();
>      }
> --------------------------------------------
> Jeg kompiler med kommandoen:
>      #g++ -L$KDEDIR/lib -lkdecore -lqt -o t1 main.cpp
> 
> Og får følgende fejl:
>      /opt/kde/lib/libkdecore.so: undefined reference to
> `XShapeCombineMask'
>      collect2: ld returned 1 exit status
> 
> Hvad er problemet?
> 
>  MVH Thomas Rasmussen

Det fattas -lX11 -lXext i kommandoen. T. ex.:

g++ -L$KDEDIR/lib -lkdecore -lqt -lX11 -lXt -o t1 main.cpp

Kalle
-- 
Kalle Dalheimer              Contract programming for Unix
sslug@sslug           Technical writing
sslug@sslug                Technical editing
sslug@sslug             KDE Developer (MFCH)
sslug@sslug           It's open, it's source, it runs - must be
KDE!




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *