[Symphony] Configuring Symphony for a Release build with VS 10.0

Ted Ralphs ted at lehigh.edu
Fri Jul 27 12:49:40 EDT 2012


This kind of error almost always arises from trying to link two libraries
built with incompatible version of the WIndows run-time library. To debug
it, I'll need at least the version of SYMPHONY you are trying to build. It
would also help to know the platform (32- or 64-bit, etc.).

Ted

On Wed, Jul 25, 2012 at 4:37 PM, <VimalMathew at eaton.com> wrote:

>  Hi,****
>
> ** **
>
> How do I configure to use in a ‘Release’ build on Visual Studio 10.0?****
>
> With the normal build, I’m getting a bunch of link errors:****
>
> ** **
>
> msvcprt.lib(MSVCP100.dll) : error LNK2005: "void __cdecl
> std::_Xout_of_range(char const *)" (?_Xout_of_range at std@@YAXPBD at Z)
> already defined in libcpmt.lib(xthrow.obj)****
>
> 1>msvcprt.lib(MSVCP100.dll) : error LNK2005: "void __cdecl
> std::_Xlength_error(char const *)" (?_Xlength_error at std@@YAXPBD at Z)
> already defined in libcpmt.lib(xthrow.obj)****
>
> 1>msvcprt.lib(MSVCP100.dll) : error LNK2005: "public: class
> std::basic_ostream<char,struct std::char_traits<char> > & __thiscall
> std::basic_ostream<char,struct std::char_traits<char> >::flush(void)"
> (?flush@?$basic_ostream at DU?$char_traits at D@std@@@std@@QAEAAV12 at XZ) already
> defined in Test.obj****
>
> 1>msvcprt.lib(MSVCP100.dll) : error LNK2005: "public: void __thiscall
> std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)"
> (?_Osfx@?$basic_ostream at DU?$char_traits at D@std@@@std@@QAEXXZ) already
> defined in Test.obj****
>
> ** **
>
> ** **
>
> These errors don’t appear till I link the Symphony include and library
> paths.****
>
> ** **
>
> Thanks,****
>
> Vimal****
>
> ** **
>
> _______________________________________________
> Symphony mailing list
> Symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/symphony
>
>


-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20120727/649c29df/attachment.html>


More information about the Symphony mailing list