error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char>
2014-03-25 14:32
726 查看
>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) 已经在 PointChoose.obj 中定义
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::close(void)" (?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) 已经在 PointChoose.obj 中定义
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int)" (?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@HH@Z)
已经在 PointChoose.obj 中定义
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofstream<char,struct std::char_traits<char> >(void)" (??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ) 已经在 PointChoose.obj
中定义
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::open(char const *,int,int)" (?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z) 已经在 PointChoose.obj 中定义
1>E:\visual_studio_2010\Projects\PathTest\Win32\Debug\\PathTest.exe : fatal error LNK1169: 找到一个或多个多重定义的符号
解决办法:在属性->链接器->命令行最下端的“其他选项”框中加入命令“/FORCE:MULTIPLE”,即将VS10的STL从import变成static。
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::close(void)" (?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) 已经在 PointChoose.obj 中定义
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int)" (?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@HH@Z)
已经在 PointChoose.obj 中定义
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofstream<char,struct std::char_traits<char> >(void)" (??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ) 已经在 PointChoose.obj
中定义
1>osgDBd.lib(osg80-osgDBd.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::open(char const *,int,int)" (?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z) 已经在 PointChoose.obj 中定义
1>E:\visual_studio_2010\Projects\PathTest\Win32\Debug\\PathTest.exe : fatal error LNK1169: 找到一个或多个多重定义的符号
解决办法:在属性->链接器->命令行最下端的“其他选项”框中加入命令“/FORCE:MULTIPLE”,即将VS10的STL从import变成static。
相关文章推荐
- error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`v
- 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
- 使用log4cplus时遇到的链接错误:无法解析的外部符号 "public: static class log4cplus::Logger __cdecl log4cplus::Logger::getInstance(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,
- error LNK2001: 无法解析的外部符号 "class std::basic_ostream<char,struct std::char_traits<char> > 的解决办法
- 错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall chain<int>::~chain<int>(void)" (??1?$chain@H@@QAE@
- 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&)
- error LNK2005: "public: __thiscall std::basic_string……already defined in……
- "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: 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 C2514: “std::basic_stringstream<_Elem,_Traits,_Alloc>”: 类没有构造函数
- 编译osgAudio遇到的'std::basic_ifstream<char,std::char_traits<char>>' : base class undefined
- no matching function for call to ‘std::basic_string<char>::assign(std::string&, int)
- error LNK2019: 无法解析的外部符号 "class std::vector<class std::basic_string<char,struct std::char_traits<cha
- 【CString与string转换】不存在从 "LPWSTR" 转换到 "std::basic_string<char, std::char_traits<char>, std::allocator(转)
- "std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const"