<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>-- <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></div>