[Cbc] Linking with Cbc
Ted Ralphs
ted at lehigh.edu
Mon Feb 22 17:58:17 EST 2016
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):
1. There is pkgconfig support. Doing
PKG_CONFIG_PATH=/path/to/install/lib/pkgconfig pkg-config --libs cbc
will get you the list of libraries. For link flags, do
PKG_CONFIG_PATH=/path/to/install/lib/pkgconfig pkg-config --flags cbc
2. If you don't want to depend on pkg-config, then there is also a file
/path/to/install/share/coin/doc/Cbc/cbc_addlibs.txt
that contains the link flags and link line that should be used.
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.
Cheers,
Ted
--
Dr. Ted Ralphs
Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20160222/b5e9329a/attachment.html>
More information about the Cbc
mailing list