[Clp] Linking problem on VC 10

Ted Ralphs ted at lehigh.edu
Tue Aug 2 12:55:47 EDT 2011


Hi Paul,

Which directory are you getting your MSVC++ files from? Is it v10 or
v10alt? I just fixed some problems I found with the MSVC++ files in
Clp stable/1.14 in the v10 directory, but I don't think any of these
would have caused the problems you're seeing. The errors you are
seeing indicate you might be using v10alt, which is experimental and
may not work properly. It was included in the release by accident. Can
you try to building one of the examples in the v10 directory and see
if you have the same problem? If not, you can use that as a template
for building your own code. Otherwise, if you could download the
stable/1.14 and give that a try, it should work fine out of the box.

Cheers,

Ted

On Fri, Jul 29, 2011 at 11:38 PM, Paul De La Musica
<paul.delamusica at gmail.com> wrote:
> Hi,
>
>  I am trying to use CLP 1.14.0 on Visual Studio 2010 Express. The
> libraries compiled OK. But when I tried to link with the application,
> I got a lot of unsatisfied externals (see below).
>
>  Both CLP and my code are compiled with /MDd option.
>
>  I would appreciate some help.
>
> Paul
>
> 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
> 1>libCoinUtils.lib(CoinFactorization3.obj) : error LNK2001: unresolved
> external symbol "__declspec(dllimport) public: __thiscall
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> >(struct
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >::_Has_debug_it)"
> (__imp_??0?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at U_Has_debug_it@01@@Z)
>
> ......
>
> 1>libClp.lib(ClpModel.obj) : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >::`default constructor closure'(void)"
> (__imp_??_F?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAEXXZ)
> 1>libOsi.lib(OsiNames.obj) : error LNK2001: unresolved external symbol
> "__declspec(dllimport) struct std::_Smanip<int> __cdecl
> std::setw(int)" (__imp_?setw at std@@YA?AU?$_Smanip at H@1 at H@Z)
> 1>libOsi.lib(OsiNames.obj) : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> std::_Container_base_secure::_Swap_aux(class
> std::_Container_base_secure &)"
> (__imp_?_Swap_aux at _Container_base_secure@std@@QAEXAAV12@@Z)
> 1>libOsi.lib(OsiNames.obj) : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> std::_Container_base_secure::_Swap_all(class
> std::_Container_base_secure &)const "
> (__imp_?_Swap_all at _Container_base_secure@std@@QBEXAAV12@@Z)
> 1>.\Debug/test.exe : fatal error LNK1120: 15 unresolved externals
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
>



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





More information about the Clp mailing list