[Cbc] Linking with Cbc

Ted Ralphs ted at lehigh.edu
Mon Feb 22 20:14:39 EST 2016


I should have pointed out that this is documented in more detail here:

https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries

In general, there is a lot of help on building COIN software here:

https://projects.coin-or.org/BuildTools/

Cheers,

Ted

On Mon, Feb 22, 2016 at 5:58 PM, Ted Ralphs <ted at lehigh.edu> wrote:

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



-- 
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/07ca65c0/attachment.html>


More information about the Cbc mailing list