error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`v
2013-06-30 17:05
766 查看
http://hi.baidu.com/haifeng60902/item/e0641a3d366b25f9a9842828
从这里看到的!
这不是版本问题,这是vs2010的问题
要解决,最简单的方法是不要用vs,第二简单的方法是在link commandline加上一行/FORCE:MULTIPLE
简单来说就是VS10的STL从import变成static了
osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) 已经在 SpatialProperties.obj 中定义
正在创建库 D:/OpenSceneGraph/OSG3.0.1/VirtualPlanetBuilder_buildx86b/Debugpbd.lib 和对象 D:/OpenSceneGraph/OSG3.0.1/VirtualPlanetBuilder_buildx86b/Debugpbd.exp
这个,我觉得是版本问题
从这里看到的!
vpb记录
这不是版本问题,这是vs2010的问题要解决,最简单的方法是不要用vs,第二简单的方法是在link commandline加上一行/FORCE:MULTIPLE
简单来说就是VS10的STL从import变成static了
osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) 已经在 SpatialProperties.obj 中定义
正在创建库 D:/OpenSceneGraph/OSG3.0.1/VirtualPlanetBuilder_buildx86b/Debugpbd.lib 和对象 D:/OpenSceneGraph/OSG3.0.1/VirtualPlanetBuilder_buildx86b/Debugpbd.exp
这个,我觉得是版本问题
相关文章推荐
- error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char>
- error LNK2005: "public: __cdecl std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofst
- error LNK2005: "public: __cdecl std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofst
- error LNK2001: 无法解析的外部符号 "class std::basic_ostream<char,struct std::char_traits<char> > 的解决办法
- 使用log4cplus时遇到的链接错误:无法解析的外部符号 "public: static class log4cplus::Logger __cdecl log4cplus::Logger::getInstance(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,
- error: no matching function for call to 'std::basic_ifstream<char>::open(std::string&)
- LNK2019: 无法解析的外部符号 "public: void __thiscall List<int>::add(int const &)" (?add@?$List@H@@QAEXABH@Z),
- error C2079: “out”使用未定义的 class“std::basic_ofstream<_Elem,_Traits>”
- error LNK2005: "public: __thiscall std::basic_string……already defined in……
- implicit instantiation of undefined template 'std::basic_stringstream<char,std::char_trats<char>,std
- error: no matching function for call to 'std::basic_ifstream<char>::open(std::string&)
- 错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall chain<int>::~chain<int>(void)" (??1?$chain@H@@QAE@
- "std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const"问题的解决办法
- error: no matching function for call to 'std::basic_ifstream<char>::open(std::string&)
- error C2514: “std::basic_stringstream<_Elem,_Traits,_Alloc>”: 类没有构造函数
- error: 'std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _T
- class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<ch
- error LNK2019: 无法解析的外部符号 "class std::vector<class std::basic_string<char,struct std::char_traits<cha
- error C2039: "nocreate": 不是"std::basic_ios<char,std::char_traits<char>>
- error LNK2001: unresolved external symbol "public: int __thiscall A<int>::get(void)" (?get@?$A@H@@QAEHXZ)