[CoinBinary-tickets] [COIN-OR Binary Distributions] #4: error LNK2005 ... already defined in libOS.lib ... with VS express 2008 in debug mode

COIN-OR Binary Distributions coin-trac at coin-or.org
Wed Oct 15 11:27:47 EDT 2008


#4: error LNK2005 ... already defined in libOS.lib ... with VS express 2008 in
debug mode
-------------------------------------------------+--------------------------
 Reporter:  csaturni                             |       Owner:  awasielak
     Type:  defect                               |      Status:  new      
 Priority:  major                                |   Milestone:           
Component:  DEBs                                 |     Version:           
 Keywords:  debug,error, LNK2005, visual studio  |  
-------------------------------------------------+--------------------------
 Dear Sir/Madam,

 When compiling the MSVisualStudio examples in debug mode -- after setting
 the 2 correct include directories, the 2 library directories and the
 library dependencies as in the release mode -- I get the following error:

 error LNK2005: "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> >(void)"
 (??1?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at XZ)
 already defined in libOS.lib(OSCoinSolver.obj)

 I took the example projects and the coin library from:
 http://www.coin-or.org/download/binary/OS/OS-1.1-VisualStudio.zip.

 The example I am compiling is in the folder:
 \MSVisualStudioOSExamples\osTestCode.

 The compiler I am using is Microsoft Visual C++ 2008 Express Edition with
 SP1, which can be found in:
 http://www.microsoft.com/express/download/#webInstall.

 Could you please tell me what I should do in order to run the debugger and
 debug my code by Visual Studio?

 Thanks.

 Best Regards.

 C.S.

-- 
Ticket URL: <https://projects.coin-or.org/CoinBinary/ticket/4>
COIN-OR Binary Distributions <http://projects.coin-or.org/CoinBinary>
Precompiled binaries of COIN-OR codes



More information about the CoinBinary-tickets mailing list