[Coin-osi-devel] a very simple question about OSI under VS2005
Pan,Zhendong
zhendongpan at gmail.com
Mon Jun 5 02:24:44 EDT 2006
coin-osi-devel,hello,
I am trying to use OSIclp to solve some LP problems under VC. Since I am not good at computer, I used the compiled version coin-win32-msvc7-13Feb06-compiled.zip. However, I think my VC is version 8.0, the following linking problem appear:
1>------ Build started: Project: IIDPunderFVC, Configuration: Debug Win32 ------
1>Linking...
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios at DU?$char_traits at D@std@@@std@@QAEXH_N at Z) already defined in libCoin.lib(CoinPackedMatrix.o)
.................
1>msvcprtd.lib(MSVCP80D.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 libCoin.lib(CoinPackedMatrix.o)
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (?_Lock@?$basic_streambuf at DU?$char_traits at D@std@@@std@@QAEXXZ) already defined in libCoin.lib(CoinPackedMatrix.o)
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (?_Unlock@?$basic_streambuf at DU?$char_traits at D@std@@@std@@QAEXXZ) already defined in libCoin.lib(CoinPackedMatrix.o)
1>LINK : fatal error LNK1104: cannot open file 'libcp.lib'
I don't find any libcp.lib files in the "lib" foler. and I just copied the lib files into "C:\Program Files\Microsoft Visual Studio 8\VC\lib".
Can somebody tell me what is the problem, and how to fix it?
Thank you.
With regards!
Pan,Zhendong
ZhendongPan at gmail.com
2006-06-05
More information about the Osi
mailing list