[Osi] Osi Link Error Message

Ted Ralphs ted at lehigh.edu
Tue Mar 30 13:33:08 EDT 2010


Although it's far from obvious, some of the errors you're seeing
usually come from a mismatch in the run-time library that you are
using to build your executable versus the one that the libraries were
built against. In your project file, go to Properties => C/C++ => Code
Generation and
see what "Runtime Library" is set to. Most likely, you want
"Multi-threaded (/MT)". If the libraries are built with debugging
symbols, then you would want "Multi-threaded debug (/MTd)". You also
seem to be missing libCoinUtils. Let us know if that fixes the
problem.

Cheers,

Ted

On Tue, Mar 30, 2010 at 9:14 AM, Julien Granger <juliengranger at gmail.com> wrote:
> Hi - I added
>
> libOsiClp.lib
> libClp.lib
> libOsi.lib
> as Additional Dependencies
>
> but keep getting link error message:
>
>
> Linking...
>
> msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class
> std::basic_ostream<char,struct std::char_traits<char> > & __thiscall
> std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int)"
> (??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QAEAAV01 at H@Z) already
> defined in libOsiClp.lib(OsiClpSolverInterface.obj)




-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted




More information about the Osi mailing list