-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 12 June 2003 10:00, Shane&Lisa wrote:
> g++ -c -I$KDEDIR/include -I$QTDIR/include -fno-rtti yourtest.cc

you probably don't want -fno-rtti since that means you can't do things like 
dynamic_casts.. it saves a bit of space in the binary, but isn't really worth 
it when compared to what you lose..

> g++ -L$KDEDIR/lib -L$QTDIR/lib -lkdeui -lkdecore -lqt -ldl -o khello
> khello.o

you can, of course, combine these two lines which is nice for single-file 
projects...

in any case, i recommend that when building a Qt program of any size that you 
use either Qt's Qmake or KDE's build system. in the kdesdk module there is a 
program called "kapptemplate" ... this will build a complete source tree 
skeleton for you complete with configure and makefiles... the only thing you 
need to do is edit Makefile.am files which are very straightforward and easy 
to understand.. here's a bit of docu on KDE's Makefile.am's:

http://developer.kde.org/documentation/other/makefile_am_howto.html

- -- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE: The 'K' is for 'kick ass'
http://www.kde.org       http://promo.kde.org/3.1/feature_guide.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE+6fO+1rcusafx20MRAixNAJ4rszclSBGAAV0y3GfWCJCsTL2qXwCaAwXE
SJ3s5HbN8mEwfxMR+Sjvb04=
=e3w9
-----END PGP SIGNATURE-----

Reply via email to