[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: undefined reference to `XShapeCombineMask'
From: Kalle Dalheimer <kalle () dalheimer ! hh ! eunet ! de>
Date: 1998-08-31 10:26:37
[Download RAW message or body]
Johannes Mueller:
>Hi folks...
>
>I´m not yet too familiar with programming in C++ under Linux, but I´d
>like to learn a bit about KDE-Development.
>So I tried to compile this program I found in a KDE-workshop published
>in Linux-Magazin.
>
>#include <kapp.h>
>#include <qpushbt.h>
>
>int main( int argc, char **argv )
>{
> KApplication a( argc, argv );
> QPushButton hello( "Hello world!" );
> hello.resize( 100, 30 );
> a.setMainWidget( &hello );
> hello.show();
> return a.exec();
>}
>
>And I get the following errormessage:
>
>$ g++ -o kde -I$KDEDIR/include -I$QTDIR/include -L$KDEDIR/lib
>-L$QTDIR/lib -lkdecore -lqt firsttest.C
>
>/opt/kde/lib/libkdecore.so: undefined reference to `XShapeCombineMask'
>
>What do I do wrong?
>
>By the way: It all works fine if I´m using the QApplication-Class
>and the quapp.h
Add -lXext to your linker line.
Kalle
--
Kalle Dalheimer Contract programming for Unix
kalle@dalheimer.de Technical writing
kalle@kde.org Technical editing
kalle@oreilly.de KDE Developer (MFCH)
mdalheimer@acm.org It's open, it's source, it runs - must be KDE!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic