<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'<br>
.../coin-Clp/lib/libCoinUtils.so:-1: error: undefined reference to `gzopen'<br>.../coin-Clp/lib/libCoinUtils.so:-1: error: undefined reference to `BZ2_bzWriteClose'<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>