Opened 12 years ago

Closed 12 years ago

Last modified 5 years ago

#4936 closed Support Requests (fixed)

cannot find boost_system-mt

Reported by: Mike <macortes84@…> Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.45.0 Severity: Showstopper
Keywords: Cc:

Description

When I install Boost 1.42 on Ubuntu with the Synaptic Package Installer, everything works fine. /usr/local/lib/ contains libboost_system-mt.so, and libboost_system-mt.a. And, building an application dependent on Boost completes without err.

Boost doesn't seem to have a package for my distro of Linux so I am having to build from source. I have built Boost 1.45 and 1.42 with the same effect as follows: After building Boost, and subsequently attempting to build the application dependent on Boost, I receive an error:

$ g++ -ggdb -g -O2 -lssl -lboost_system-mt -o <object-files>

/usr/bin/ld: cannot find -lboost_system-mt

I built Boost according to the instructions at http://www.boost.org/doc/libs/1_45_0/more/getting_started/unix-variants.html as I understand them:

$ ./bootstrap.sh --prefix=/usr/local

$ ./bjam install

This fills /usr/local/include/ with Boost's .hpp files and /usr/local/lib/ with many libboost_xxxxxxx files.

Nowhere in /usr/local/lib/ is any file "*-mt*", let alone a "boost_system-mt*" anywhere on my system. Why is this not working for me?

Change History (4)

comment:1 by Vicente Botet <vicente.botet@…>, 12 years ago

Component: NoneBuilding Boost

comment:2 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

The -mt suffix has been removed. If you still want it use ./bjam --layout=tagged install.

comment:3 by Mike <macortes84@…>, 12 years ago

Thanks. It works great. The software referencing the libraries was written by someone else, and reference Boost with the -mt suffix. Compiling from source was the only way to install it on my distro, and it's overkill to modify the source for this. So thanks.

comment:4 by anonymous, 5 years ago

Thanks. It worked for me as well.

Note: See TracTickets for help on using tickets.