This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Confused about linking


lrtaylor@micron.com wrote:
-lxx causes the linker to look first for libxx.so and then libxx.a, unless you override that default by specifying the appropriate actions. In this case, with -lboost_thread, it's going to look for libboost_thread.so and then libboost_thread.a. However, neither of them exists - instead, you have libboost_thread.so.1. Create a symbolic link in /usr/lib named libboost_thread.so to libboost_thread.so.1, and you should be OK.

For example, execute the following commands:

su (must be logged in as root)
cd /usr/bin
ln -s libboost_thread.so.1 libboost_thread.so


Thanks everyone! When creating the symbolic link everything works fine! Now why didn't I try that in the first place? =)


:.:: mattias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]