I am on windows 7, x64 using visual studio 2010. I would like to build Ceres statically, but cant get past the following linker errors. What am I doing wrong?
2>libcpmt.lib(cout.obj) : error LNK2005: "public: virtual __cdecl std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in libglog.lib(libglog.dll)
2>libcpmt.lib(cout.obj) : error LNK2005: "protected: __cdecl std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct std::char_traits<char> >(void)" (??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ) already defined in libglog.lib(libglog.dll)
2>libcpmt.lib(cout.obj) : error LNK2005: "public: void __cdecl std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z) already defined in libglog.lib(libglog.dll)
2>libcpmt.lib(cout.obj) : error LNK2005: "protected: void __cdecl std::basic_ios<char,struct std::char_traits<char> >::init(class std::basic_streambuf<char,struct std::char_traits<char> > *,bool)" (?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z) already defined in libglog.lib(libglog.dll)
2>C:\Users\PSU\Desktop\ceres\ceres-bin\bin\Release\helloworld.exe : fatal error LNK1169: one or more multiply defined symbols found
I have verified that glog is compiled using libcmt.