<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 21-02-2012 13:23, Hubert Thieriot wrote:
<blockquote cite="mid:4F43B707.9020707@mines-paristech.fr"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Dear all members,<br>
<br>
when trying to link with libOsi.a and libOsiGlpk.a, I got
undefined symbols (I do only write a fraction of those below).<br>
<br>
I've been compiling Osi and OsiGlpk with mingw and did not faced
any error while doing it (./configure make make install).<br>
<br>
My linking command : <span style=" color:#000000;">g++
-enable-auto-import -mthreads -shared
-Wl,--out-implib,debug\\libdOMOptim_EIProblem.a -o
debug\dOMOptim_EIProblem.dll
object_script.dOMOptim_EIProblem.Debug
-L"c:\QtSDK\Desktop\Qt\4.7.4\mingw\lib"
-L..\..\Trunk/build/debug -lOMOptim
-LC:\OMDev/lib/omniORB-4.1.4-mingw/lib/x86_win32
-lomniORB414_rtd -lomnithread34_rtd -lomniDynamic414_rtd
-LC:\OMDev/lib/paradiseo-mingw/paradiseo-eo/lib -leo -leoutils
-LC:\OMDev/lib/paradiseo-mingw/paradiseo-moeo/lib -lmoeo
-LC:\OMDev/lib/qwt-5.2.1-mingw/lib -lqwtd5
-LC:\PluginEIDev/glpk/w32 -lglpk_4_47 -LC:\PluginEIDev/Osi/lib
-lCoinUtils -lOsi -lOsiCommonTests -lOsiGlpk -lQtSvgd4 -lQtXmld4
-lQtGuid4 -lQtCored4 </span><br>
</blockquote>
<br>
GCC is a bit strict about the order where libraries are specified.<br>
<br>
Try to replace:<br>
<span style=" color:#000000;">-lCoinUtils -lOsi -lOsiCommonTests
-lOsiGlpk<br>
with <br>
</span><span style="color: rgb(0, 0, 0);">-lOsiGlpk </span>-lOsi
-lCoinUtils<span style=" color:#000000;"> </span><span style="
color:#000000;">-lcoinglpk<br>
</span><br>
<blockquote cite="mid:4F43B707.9020707@mines-paristech.fr"
type="cite"> <br>
Does one of you has any idea about the problem ?<br>
<br>
Best regards,<br>
<br>
Hubert<br>
<br>
<span style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xd97):
undefined reference to
`CoinWarmStartBasis::CoinWarmStartBasis()'</span>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xfdf):
undefined reference to `OsiRowCut::ub() const'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xfea):
undefined reference to `OsiRowCut::lb() const'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xff5):
undefined reference to `OsiRowCut::row() const'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x1ab1):
undefined reference to `CoinPackedMatrix::times(double const*,
double*) const'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x1dfb):
undefined reference to
`CoinPackedMatrix::transposeTimes(double const*, double*)
const'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x224a):
undefined reference to `CoinPackedMatrix::CoinPackedMatrix()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2272):
undefined reference to `CoinPackedMatrix::setDimensions(int,
int)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2308):
undefined reference to `CoinPackedMatrix::appendCol(int, int
const*, double const*)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2357):
undefined reference to `CoinPackedMatrix::removeGaps(double)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x23c6):
undefined reference to `CoinPackedMatrix::CoinPackedMatrix()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x23d4):
undefined reference to `CoinPackedMatrix::transpose()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x23f6):
undefined reference to `CoinPackedMatrix::setDimensions(int,
int)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x248c):
undefined reference to `CoinPackedMatrix::appendRow(int, int
const*, double const*)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x24db):
undefined reference to `CoinPackedMatrix::removeGaps(double)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2dd1):
undefined reference to `CoinMessageHandler::setLogLevel(int)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2ea5):
undefined reference to
`OsiSolverInterface::OsiSolverInterface()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2ee7):
undefined reference to
`OsiSolverInterface::~OsiSolverInterface()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x524a):
undefined reference to `OsiSolverInterface::setInitialData()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x56b7):
undefined reference to `CoinMessageHandler::setLogLevel(int)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x59da):
undefined reference to
`OsiSolverInterface::operator=(OsiSolverInterface const&)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5a89):
undefined reference to
`OsiSolverInterface::OsiSolverInterface(OsiSolverInterface
const&)'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5ad7):
undefined reference to
`OsiSolverInterface::~OsiSolverInterface()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5c26):
undefined reference to
`OsiSolverInterface::~OsiSolverInterface()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5c96):
undefined reference to
`OsiSolverInterface::~OsiSolverInterface()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5d5e):
undefined reference to
`OsiSolverInterface::~OsiSolverInterface()'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" color:#aa0000;">C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5dc6):
undefined reference to
`OsiSolverInterface::~OsiSolverInterface()'</span></p>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Osi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Osi@list.coin-or.org">Osi@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/osi">http://list.coin-or.org/mailman/listinfo/osi</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
=============================================================
Haroldo Gambini Santos
Computing Department - Universidade Federal de Ouro Preto - UFOP
email: haroldo [at ] iceb.ufop.br
haroldo.santos [at] gmail.com
home/research page: <a class="moz-txt-link-abbreviated" href="http://www.decom.ufop.br/haroldo/">www.decom.ufop.br/haroldo/</a>
</pre>
</body>
</html>