<div dir="ltr">Hi Sourav,<div><br></div><div>Shared library dependency linking had been broken for quite a while in Clp until recently. Try compiling the latest release with the &quot;--enable-dependency-linking&quot; option. You should then only have to link with the libraries whose exports you use directly.</div>
<div><br></div><div>Best,</div><div>Miles</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 20, 2014 at 6:59 AM, Sourav Garg <span dir="ltr">&lt;<a href="mailto:sourav.sahaji@gmail.com" target="_blank">sourav.sahaji@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>I have downloaded th CLP tar (Ubuntu 12.04) and gone through steps to install the libraries. I tried to run the examples in the example folder which works fine.<br>

<br></div>But when I try to link the library in my project, I get errors. If I link only the libclp.so, I get around 250 errors related to CoinUtils. After linking the CoinUtils.so, errors reduce to 6:<br>.../coin-Clp/lib/libCoinUtils.so:-1: error: undefined reference to `gzwrite&#39;<br>

.../coin-Clp/lib/libCoinUtils.so:-1: error: undefined reference to `gzopen&#39;<br>.../coin-Clp/lib/libCoinUtils.so:-1: error: undefined reference to `BZ2_bzWriteClose&#39;<br><br></div>After linking the bz2 library I get rid of last error and their alike, for first two errors, I have linked zlib, but the error persists.<br>

</div><br>I am using QtCreator for my project and linking as follows:<br>LINK_DIRECTORIES(mypath/coin-Clp/lib/)<br>TARGET_LINK_LIBRARIES(myTarget libClp.so libCoinUtils.so bz2 z libOsi.so libCoinUtils.so libOsiClp.so libOsiCommonTests.so)<br>

<br></div>Please see what I am doing wrong or any other information required to solve this issue.<br></div>Thanks in advance,<br></div>Sourav<br></div>
<br>_______________________________________________<br>
Clp mailing list<br>
<a href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
<br></blockquote></div><br></div>