您的位置:首页 > 大数据 > 人工智能

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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐