[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Newbie KDE/QT Programming question...
From: Fabian Wolf <fabianw () gmx ! net>
Date: 2001-07-19 21:34:18
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 19 July 2001 23:24, John Toon wrote:
> Hi,
>
> I'm running KDE-2.1, and I've been following the examples in the online
> book "KDE 2.0 Development" by David Sweet, et al. However, after
> compiling, whenever I try to link the object files from the examples, I
> get this problem:
>
> [john1@localhost sillyprog]$ g++ -o myprog main.o mywindow.o
> -L/$QTDIR/lib -lqt
> main.o: In function `main':
> main.o(.text+0x3a): undefined reference to
> `KApplication::KApplication(bool, bool)'
> main.o(.text+0x119): undefined reference to
> `KApplication::~KApplication(void)'
> main.o(.text+0x18c): undefined reference to
> `KApplication::~KApplication(void)'
> mywindow.o: In function `MyWindow::staticMetaObject(void)':
> mywindow.o(.text+0x124): undefined reference to
> `MyWindow::slotButton(void)'
>
> Any ideas why I'm getting this? I'm sure I've typed the examples in
> correctly. Has something changed between KDE-2.0 and 2.1?
You're only linking to Qt, you might wanna link to KDE also:
- -L$KDEDIR/lib -lkdeui -lkdecore
wolfy
- --
The young do not know enough to be prudent
and therefore they attempt the impossible -
and achieve it, generation after generation
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7V1JfecDvLx8T7osRAqLxAJ4qX9OSNmSm078JMrGuctZo//1vdwCcClIP
Rhkc0yOG8OMkQbT4feI+1+s=
=XZKT
-----END PGP SIGNATURE-----
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic