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