On 07-Oct-99 Larkin Cunningham wrote:
>The compile worked fine:
>>g++ -c -I$KDEDIR/include -I/usr/include/qt -fno-rtti khello.cc
>>and khello.o was created.
>>The link though doesn't work:
>>g++ -L$KDEDIR/lib -lkdecore -lkdeui -lqt -o khello khello.o
I tested it myself, and it works fine for me, but nonetheless
humour me and put that the other way around i.e.
g++ -o khello khello.o -L$KDEDIR/lib -lkdecore -lkdeui -lqt
Ive had to do all sorts of dances in the past (though maybe gcc
is more clever now) to get symbols to resolve correctly, and it
grates me to see the libs before the obj that will be using them.
Real Life: Caolan McNamara * Doing: MSc in HCI
Work: Caolan.McNamara at ul.ie * Phone: +353-86-8790257
URL: http://www.csn.ul.ie/~caolan * Sig: an oblique strategy
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!