<br><br><div class="gmail_quote">On Sun, Oct 21, 2012 at 3:44 PM, Lars Viklund <span dir="ltr">&lt;<a href="mailto:zao@acc.umu.se" target="_blank">zao@acc.umu.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Oct 21, 2012 at 01:55:48PM -0400, Joseph Sulewski wrote:<br>
&gt; Steven,<br>
&gt;<br>
&gt; Thank you for the reply. It is definitely something order related. �I took<br>
&gt; your advice and moved the boost_program_options to the end but now I get a<br>
&gt; lot of different errors. �Is there any documentation that guides the order<br>
&gt; in which the boost libraries should be linked?<br>
<br>
</div>Please do not top-post on the Boost lists.<br>
<br>
Linker command line ordering is largely due to historical reasons with<br>
ld-like linkers, and is considered a feature by some.<br>
<br>
In absence of the group options that changes scan behaviour, library<br>
resolution works roughly like this:<br>
<br>
The command line is scanned from left to right. Missing symbols are<br>
recorded as it scans. When something providing symbols is encountered,<br>
all missing symbols it can fulfil are filled and the rest are ignored.<br>
<br>
The end result is that if you list something that provides symbols too<br>
early on the command line, there&#39;s nothing that needs those symbols yet<br>
and they&#39;re all discarded.<br>
<br>
This is how traditional linking against static libraries work. Dynamic<br>
libraries are somewhat different, and newer toolchains have some changes<br>
in visiblity that may affect how links are performed.<br>
<br>
All in all, it&#39;s rarely wrong to play it safe and topologically sort<br>
your command line in dependency order.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Lars Viklund | <a href="mailto:zao@acc.umu.se">zao@acc.umu.se</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br>
<a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</div></div></blockquote></div><br><div>Lars,</div><div><br></div><div>Thank you for the explanation �The problem i&#39;m facing is that I&#39;m linking against a third party library and I don&#39;t know their dependencies. Is there a dependency order for the boost libraries?</div>
<div><br></div><div>Thanks</div>