<div dir="ltr"><div>I should have pointed out that this is documented in more detail here:</div><div><br></div><div><a href="https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries">https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries</a><br></div><div><br></div><div>In general, there is a lot of help on building COIN software here:</div><div><br></div><div><a href="https://projects.coin-or.org/BuildTools/">https://projects.coin-or.org/BuildTools/</a><br></div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 5:58 PM, Ted Ralphs <span dir="ltr"><<a href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As another follow-up for posterity, I wanted to remind everyone (since it's not very well documented) that there are two ways to get the proper link line after building Cbc (or any other COIN project):<div><br></div><div>1. There is pkgconfig support. Doing</div><div><br></div><div>PKG_CONFIG_PATH=/path/to/install/lib/pkgconfig pkg-config --libs cbc</div><div><br></div><div>will get you the list of libraries. For link flags, do</div><div><br></div><div><div>PKG_CONFIG_PATH=/path/to/install/lib/pkgconfig pkg-config --flags cbc</div></div><div><br></div><div>2. If you don't want to depend on pkg-config, then there is also a file<br clear="all"><div><br></div><div>/path/to/install/share/coin/doc/Cbc/cbc_addlibs.txt<br></div><div><br></div><div>that contains the link flags and link line that should be used.</div><div><br></div><div>These are specific to the machine on which the code was compiled, so that whatever libraries are detected and linked to (like libz) on that particular machine are included in the link line. This link line may not work on another machine.</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Lehigh University<br><a href="tel:%28610%29%20628-1280" value="+16106281280" target="_blank">(610) 628-1280</a><br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Ted Ralphs<br>Professor, Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div>
</div>