[Osi] Failed to link with OsiSolverInterface
Haroldo Gambini Santos
haroldo.santos at gmail.com
Tue Feb 21 10:35:52 EST 2012
On 21-02-2012 13:23, Hubert Thieriot wrote:
> Dear all members,
>
> when trying to link with libOsi.a and libOsiGlpk.a, I got undefined
> symbols (I do only write a fraction of those below).
>
> I've been compiling Osi and OsiGlpk with mingw and did not faced any
> error while doing it (./configure make make install).
>
> My linking command : 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
GCC is a bit strict about the order where libraries are specified.
Try to replace:
-lCoinUtils -lOsi -lOsiCommonTests -lOsiGlpk
with
-lOsiGlpk -lOsi -lCoinUtils-lcoinglpk
>
> Does one of you has any idea about the problem ?
>
> Best regards,
>
> Hubert
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xd97):
> undefined reference to `CoinWarmStartBasis::CoinWarmStartBasis()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xfdf):
> undefined reference to `OsiRowCut::ub() const'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xfea):
> undefined reference to `OsiRowCut::lb() const'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0xff5):
> undefined reference to `OsiRowCut::row() const'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x1ab1):
> undefined reference to `CoinPackedMatrix::times(double const*,
> double*) const'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x1dfb):
> undefined reference to `CoinPackedMatrix::transposeTimes(double
> const*, double*) const'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x224a):
> undefined reference to `CoinPackedMatrix::CoinPackedMatrix()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2272):
> undefined reference to `CoinPackedMatrix::setDimensions(int, int)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2308):
> undefined reference to `CoinPackedMatrix::appendCol(int, int const*,
> double const*)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2357):
> undefined reference to `CoinPackedMatrix::removeGaps(double)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x23c6):
> undefined reference to `CoinPackedMatrix::CoinPackedMatrix()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x23d4):
> undefined reference to `CoinPackedMatrix::transpose()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x23f6):
> undefined reference to `CoinPackedMatrix::setDimensions(int, int)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x248c):
> undefined reference to `CoinPackedMatrix::appendRow(int, int const*,
> double const*)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x24db):
> undefined reference to `CoinPackedMatrix::removeGaps(double)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2dd1):
> undefined reference to `CoinMessageHandler::setLogLevel(int)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2ea5):
> undefined reference to `OsiSolverInterface::OsiSolverInterface()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x2ee7):
> undefined reference to `OsiSolverInterface::~OsiSolverInterface()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x524a):
> undefined reference to `OsiSolverInterface::setInitialData()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x56b7):
> undefined reference to `CoinMessageHandler::setLogLevel(int)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x59da):
> undefined reference to
> `OsiSolverInterface::operator=(OsiSolverInterface const&)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5a89):
> undefined reference to
> `OsiSolverInterface::OsiSolverInterface(OsiSolverInterface const&)'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5ad7):
> undefined reference to `OsiSolverInterface::~OsiSolverInterface()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5c26):
> undefined reference to `OsiSolverInterface::~OsiSolverInterface()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5c96):
> undefined reference to `OsiSolverInterface::~OsiSolverInterface()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5d5e):
> undefined reference to `OsiSolverInterface::~OsiSolverInterface()'
>
> C:\PluginEIDev/Osi/lib/libOsiGlpk.a(OsiGlpkSolverInterface.o):OsiGlpkSolverInterface.cpp:(.text+0x5dc6):
> undefined reference to `OsiSolverInterface::~OsiSolverInterface()'
>
>
>
>
>
> _______________________________________________
> Osi mailing list
> Osi at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/osi
--
=============================================================
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: www.decom.ufop.br/haroldo/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20120221/407dd901/attachment-0001.html>
More information about the Osi
mailing list