From: Caolan McNamara (Caolan.McNamara at domain ul.ie)
Date: Thu 07 Oct 1999 - 13:31:39 IST
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 domain ul.ie * Phone: +353-86-8790257
URL: http://www.csn.ul.ie/~caolan * Sig: an oblique strategy
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:41 GMT