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


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:

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at