[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]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
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!
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |