Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-07-2003, 03:45 AM   #1
Red Guy
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, 04:52 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,580

Rep: Reputation: 191Reputation: 191
You may try to:
1) Link with -lqt-mt (threaded version of QT library), should work if your QT library name is something like ''.
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).


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 08:01 PM
ld linking problem captain-mythos Linux - Software 1 06-20-2004 09:46 AM
Library linking problem The_Nerd Programming 10 04-27-2004 12:07 AM
C++ Linking Problem acjt Programming 4 01-31-2004 09:48 AM
linking problem with ld ! gluon Programming 2 05-19-2002 02:59 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:53 PM.

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