I have installed
extra/boost 1.52.0-1 extra/boost-libs 1.52.0-1
I'm trying to build autotools C++ projects (two disctincts project by the same authors are given the same problem) which make use of parts of the Boost library. They have been successfully tested and build under Ubuntu 12.04. with installed libboost-all-dev package. With ArchLinux ./configure works out fine and the compilation process (make) seems to work, too. Nevertheless, there seems to be a problem with the linking:
libtool: link: g++ -g -O2 -Wall -Wextra -o ssbmc smtparser.o ... ../contrib/cudd 2.4.2/obj/.libs/libobj.a ... -lboost_program_options-mt -lboost_iostreams-mt -lgmp -lgmpxx -lm -lz /usr/bin/ld: cannot find -lboost_program_options-mt /usr/bin/ld: cannot find -lboost_iostreams-mt
Any ideas why it fails? The headers seems to be there since the source makes use of Boost library functions and compiling the files does not fail.
Last edited by joachimr (2013-02-23 17:54:24)
At this point, I usually try autoreconf. YMMV.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence. You must not work with the public much. -- Trilby
How to Ask Questions the Smart Way
If tryed both autoreconf and autoreconf -i to create the configure script. Nothing changes.
The libraries are there:
$ ls /usr/lib/ | grep program libboost_program_options.a libboost_program_options.so libboost_program_options.so.1.52.0 $ ls /usr/lib/ | grep iostreams libboost_iostreams.a libboost_iostreams.so libboost_iostreams.so.1.52.0
Do they have to be renamed?
$sudo ln -s libboost_program_options.so libboost_program_options-mt.so $sudo ln -s libboost_iostreams.so libboost_iostreams-mt.so
Is that a known problem? ArchLinux or autotools Problem?