LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-07-2003, 02:45 AM   #1
Red Guy
Member
 
Registered: May 2002
Location: Tampico, Tamaulipas, México
Distribution: Mandrake 9.0
Posts: 38

Rep: Reputation: 15
Unhappy Problem linking


I try compile a little program using the Qt3 libraries, to linking make the next error message:

/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status

I checked the Qt directory and I have all libs, I thinking that is a configuration problem.

¿How can I setup a path to libraries?

Thank you
 
Old 02-07-2003, 03:52 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
You may try to:
1) Link with -lqt-mt (threaded version of QT library), should work if your QT library name is something like 'libqt-mt.so'.
2) Change LD_LIBRARY_PATH or add the directory where QT libraries are to ld.conf so and run ldconfig.
To change LD_LIBRARY_PATH use
export LD_LIBRARY_PATH=/usr/local/qt3/lib:$LDLIBRARY_PATH
or something similar (with the right path).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Problem I think? gplacek Linux - Software 10 08-13-2004 07:01 PM
ld linking problem captain-mythos Linux - Software 1 06-20-2004 08:46 AM
Library linking problem The_Nerd Programming 10 04-26-2004 11:07 PM
C++ Linking Problem acjt Programming 4 01-31-2004 08:48 AM
linking problem with ld ! gluon Programming 2 05-19-2002 01:59 PM


All times are GMT -5. The time now is 03:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration