LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] KDE developing

[ILUG] KDE developing

Caolan McNamara Caolan.McNamara at ul.ie
Thu Oct 7 13:31:39 IST 1999


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. 

C.

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
Accept advice




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell