Boost logo

Boost-Build :

Subject: Re: [Boost-build] Question on specifying linker dependencies
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-05-05 20:39:06


AMDG

On 05/05/2013 03:46 AM, Gaurav Chakravorty wrote:
> I am not sure if this is the list meant for such questions but here goes.
>
> I am trying to compile a project where there are libraries and execs.
> One of the libraries built by the project "libUtils.a" needs to be linked
> against boost iostreams
>
> When compiling with toolset gcc it uses a linking command with start-group
> and end-group, but when compiling with toolset clang b2 uses a linking
> command like :
>
> "clang++" <snip>
> "/apps/boost/root/bin.v2/libs/iostreams/build/clang-linux-3.3/release/link-static/libboost_iostreams.a"
> ~/infra_install/lib/libCDef.a -lbz2 -lz -lpthread
>
> This produces linking errors like undefined references in boost
>
> When I reorder it to
>
> <snip>
> i.e bring boost lib to the end it links fine.
>
> What am I doing wrong ? Any pointers ?
>

Does this help:
http://www.boost.org/boost-build2/doc/html/bbv2/faq/liborder.html

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk