<br><br><div class="gmail_quote">On Sun, Oct 21, 2012 at 3:44 PM, Lars Viklund <span dir="ltr"><<a href="mailto:zao@acc.umu.se" target="_blank">zao@acc.umu.se</a>></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> > Steven,<br> ><br> > Thank you for the reply. It is definitely something order related. �I took<br> > your advice and moved the boost_program_options to the end but now I get a<br> > lot of different errors. �Is there any documentation that guides the order<br> > 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's nothing that needs those symbols yet<br> and they'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'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'm facing is that I'm linking against a third party library and I don't know their dependencies. Is there a dependency order for the boost libraries?</div> <div><br></div><div>Thanks</div>