<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I am not sure if this is the list meant for such questions but here goes.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I am trying to compile a project where there are libraries and execs.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

One of the libraries built by the project &quot;libUtils.a&quot; needs to be linked against boost iostreams�</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

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 :</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

<br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">&quot;clang++&quot; -L&quot;/apps/bzip2/lib&quot; -L&quot;/apps/zlib/lib&quot; � -o &quot;fixfast/bin/clang-linux-3.3/release/link-static/fixfast-mds_MCAST&quot; &quot;fixfast/bin/clang-linux-3.3/release/link-static/fixfastDataD.o&quot; �&quot;/apps/boost/root/bin.v2/libs/iostreams/build/clang-linux-3.3/release/link-static/libboost_iostreams.a&quot;�</font><span style="font-family:arial,helvetica,sans-serif">~/infra_install/lib/libCDef.a</span><span style="font-family:arial,helvetica,sans-serif">�-lbz2 -lz �-lpthread</span></div>

<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">This produces linking errors like undefined references in boost</div>

<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">When I reorder it to�</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><font face="arial, helvetica, sans-serif">&quot;clang++&quot; -L&quot;/apps/bzip2/lib&quot; -L&quot;/apps/zlib/lib&quot; � -o &quot;fixfast/bin/clang-linux-3.3/release/link-static/fixfast-mds_MCAST&quot; &quot;fixfast/bin/clang-linux-3.3/release/link-static/fixfastDataD.o&quot;�</font><font face="arial, helvetica, sans-serif">�</font><b>~/infra_install/lib/libCDef.a</b><font face="arial, helvetica, sans-serif">�<b>&quot;/apps/boost/root/bin.v2/libs/iostreams/build/clang-linux-3.3/release/link-static/libboost_iostreams.a&quot;</b></font>�-lbz2 -lz �-lpthread</div>

<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">�i.e bring boost lib to the end it links fine.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">What am I doing wrong ? Any pointers ?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

<br></div><div>







<p>







</p><font size="1"><font face="verdana, sans-serif"><br></font></font><div style="text-align:left"><font face="verdana, sans-serif">Gaurav Chakravorty ��</font><font face="verdana, sans-serif"><br>Circulum Vite LLC</font><font face="verdana, sans-serif"><br>

2500 PLAZA 5 . Harborside Financial Center,�</font><font face="verdana, sans-serif">Jersey City, NJ 07311-4026</font><font face="verdana, sans-serif"><br></font><span style="border-collapse:separate;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:collapse"><font face="verdana, sans-serif">Tel: 201-377-2302 � �� Fax:</font><span><font face="verdana, sans-serif">�</font></span><span style="border-collapse:collapse"><font face="verdana, sans-serif">201-604-5422 � ��Cell:</font></span><font face="verdana, sans-serif"> 201-500-7416</font></span></span></div>

<div style="text-align:-webkit-auto"><font face="verdana, sans-serif"><br></font></div><div style="text-align:left"><span style="text-align:-webkit-auto;text-indent:0px"><font size="1" face="times new roman, serif" color="#999999"><div style="text-align:-webkit-auto">

<div style="text-align:-webkit-auto"><span style="border-collapse:collapse">This communication and any attachments may be privileged or confidential.�</span>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�<span style="border-collapse:collapse">immediately by reply email or by phone (+1-201-377-2302) and�</span>immediately delete this message and all attachments.�<span style="border-collapse:collapse">E-mail transmission cannot be guaranteed to be secure or error-free as information�</span>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.</div>

</div></font></span></div><p></p></div>
</div>