Thanks. This was exactly what I needed.


Gaurav Chakravorty   
Circulum Vite LLC

2500 PLAZA 5 . Harborside Financial Center, 
Jersey City, NJ 07311-4026
Tel: 201-377-2302      Fax: 201-604-5422     Cell: 201-500-7416

This communication and any attachments may be privileged or confidential. Copying or forwarding without permission of sender is prohibited. If you are not the intended recipient, you have received this in error and any review, distribution or copying of this communication is strictly prohibited. In such an event, please notify us immediately by reply email or by phone (+1-201-377-2302) and immediately delete this message and all attachments. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. The authenticity of the sender cannot be claimed in any litigation.



On Wed, May 8, 2013 at 11:35 AM, Kohei Takahashi <flast@flast.jp> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Gaurav,

I think it is related to https://svn.boost.org/trac/boost/ticket/5820 .

Thanks,
Kohei Takahashi

(2013/05/05 19:46), 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++" -L"/apps/bzip2/lib" -L"/apps/zlib/lib"   -o
> "fixfast/bin/clang-linux-3.3/release/link-static/fixfast-mds_MCAST"
>
>
"fixfast/bin/clang-linux-3.3/release/link-static/fixfastDataD.o"
> "/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
>
> "clang++" -L"/apps/bzip2/lib" -L"/apps/zlib/lib"   -o
> "fixfast/bin/clang-linux-3.3/release/link-static/fixfast-mds_MCAST"
>
>
"fixfast/bin/clang-linux-3.3/release/link-static/fixfastDataD.o"
*~/infra_install/lib/libCDef.a*
*"/apps/boost/root/bin.v2/libs/iostreams/build/clang-linux-3.3/release/link-static/libboost_iostreams.a"*
- -lbz2
> -lz  -lpthread i.e bring boost lib to the end it links fine.
>
> What am I doing wrong ? Any pointers ?
>
>
> Gaurav Chakravorty Circulum Vite LLC 2500 PLAZA 5 . Harborside
> Financial Center, Jersey City, NJ 07311-4026 Tel: 201-377-2302
> Fax: 201-604-5422     Cell:201-500-7416
>
> This communication and any attachments may be privileged or
> confidential. Copying or forwarding without permission of sender
> is prohibited. If you are not the intended recipient, you have
> received this in error and any review, distribution or copying of
> this communication is strictly prohibited. In such an event, please
> notify us immediately by reply email or by phone (+1-201-377-2302)
> and immediately delete this message and all attachments. E-mail
> transmission cannot be guaranteed to be secure or error-free as
> information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses. The sender therefore
> does not accept liability for any errors or omissions in the
> contents of this message, which arise as a result of e-mail
> transmission. The authenticity of the sender cannot be claimed in
> any litigation.
>
>
>
> _______________________________________________ Unsubscribe & other
> changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQIcBAEBAgAGBQJRinDFAAoJEGGyPxPRp/zoAbEP/jHCVE/7i3sDVe9au20e6JTx
wRa4MRWmvpAz2tctxBTZrBmn9dsR6JFIOshMNnjG+4uoRjWjl7qGqw9wwPqDHIiS
sVWeUGtoRmc1V3xiLnS6tY3l1F2vIcDuEX13tAHqSgHfilGLOZQkM57sSHGqdYCR
W0gwb2DKPN8JozAkF0a7sjv2fCc1k9CtG8+tZlydDG0AGJbn55vw3OuujEzQyAKg
/y5wF0D8ZxaoPTmFiINFENsAOcf+XQgG0qQ8tY77xU+qdTRdlU1G5IoqlxUODfwX
NuDeYeVWXjsPH+3UM0aI4L+A0D7vvxAu0OoXxrovP8RLRc4uMwmND8b5FYTDEgaN
yGWY1TCDbjlZ0xyJE6gQv7Vv0AOflZHRWmi1E1mZnfbZ0SzeFpH7Y+qLGdVd5yKH
eM1azpG8JphL2cyXJv57vziVs21sctNIjgTAN76UHQWvTvQb175XoJU0j7hEjW51
y1dOIDMNpp1fcSP8fn+MJs2GOBTrwoucDLYRAjiDoMM9NgqrJNlq8KuXwu7MDiVr
hciwpxkGyuWtiKLV2R7V/Ce31SAMqMsQ8ovJTS39hdFVFLR7N/+PR1G4BNsiE0e9
AzREH6cm41yh5SxTBokCEv9h+1IEGnwNDfVzQZ0dDgmrHwMEMDc113rl8hnFdpsN
l1BnxLixMTJjsJLcOxCN
=jNYg
-----END PGP SIGNATURE-----
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build