LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Problem linking (https://www.linuxquestions.org/questions/programming-9/problem-linking-44422/)

Red Guy 02-07-2003 02:45 AM

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

Mara 02-07-2003 03:52 AM

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).


All times are GMT -5. The time now is 01:10 AM.