Fwd: cannot find lboost_thread -problem
Hi all. It seems I have tried to send my messages to wrong mailing lists. Sorry about extra work. I need Boost and lboost_thread to compile Open Diameter. When compiling Open Diameter, I get message /usr/bin/ld: cannot find -lboost_thread I can not find lboost_thread with slocate after compiling Boost 1.33.1, so presumable reason is that I haven't used bjam with right options. Do I need to add libraries using --with-<lib> option to get lboost_thread? If yes, which library has it? Do I also need to use -th option? If I want to use boost rpm's (1.32.0) that came with Linux distribution and is installed already, what should I do to get lboost_thread? Thank you for any answers and help! -Teemu Väisänen
Väisänen Teemu wrote:
I need Boost and lboost_thread to compile Open Diameter. When compiling Open Diameter, I get message /usr/bin/ld: cannot find -lboost_thread
I can not find lboost_thread with slocate after compiling Boost 1.33.1, so presumable reason is that I haven't used bjam with right options.
The file that you'd be looking for would be "libboost_thread.a" or "libboost_thread.so". In the linux/unix ld command, the -l<library> tells the linker to look for a file named lib<library>.a or lib<library>.so in a standard list of directories. This list can be modified by giving ld the "-L<directory>" option. Since you're building your own, you might need to use the -L<directory> option to tell the linker where to look for libboost_thread.{a,so}. I successfully build with the pre-built packages on Debian testing and stable, also with the RPMs on Red Hat Enterprise 3 and 4. I use the ld option "-lboost_thread". I'd recommend using the boost RPMs at first. Try building your own boost later after you get it working and only if you need the bug fixes or newer functionality. If this doesn't get you going then you might want to give a little more info such as the actual operating system, the complete ld command line that you're using, etc... -Rob
participants (2)
-
Rob Lemley
-
Väisänen Teemu