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>
> ~/infra_install/lib/libCDef.a -lbz2 -lz -lpthread
> This produces linking errors like undefined references in boost
> When I reorder it to
> i.e bring boost lib to the end it links fine.
> What am I doing wrong ? Any pointers ?
Does this help:
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