You are not logged in.

#1 2013-02-22 15:22:57

joachimr
Member
From: Aachen, Germany
Registered: 2011-09-16
Posts: 6

[Solved] Building a C++ projects using Boost

I have installed

extra/boost 1.52.0-1
extra/boost-libs 1.52.0-1 

with pacman.

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)

Offline

#2 2013-02-22 15:43:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,131

Re: [Solved] Building a C++ projects using Boost

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

Offline

#3 2013-02-22 16:33:19

joachimr
Member
From: Aachen, Germany
Registered: 2011-09-16
Posts: 6

Re: [Solved] Building a C++ projects using Boost

If tryed both autoreconf and autoreconf -i to create the configure script. Nothing changes.

Offline

#4 2013-02-22 21:56:43

joachimr
Member
From: Aachen, Germany
Registered: 2011-09-16
Posts: 6

Re: [Solved] Building a C++ projects using Boost

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?

Offline

#5 2013-02-22 22:54:58

joachimr
Member
From: Aachen, Germany
Registered: 2011-09-16
Posts: 6

Re: [Solved] Building a C++ projects using Boost

This works:

$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?

Offline

Board footer

Powered by FluxBB