error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`v

来源:互联网 发布:梦幻西游网络默认 编辑:程序博客网 时间:2024/04/29 13:34

http://hi.baidu.com/haifeng60902/item/e0641a3d366b25f9a9842828


从这里看到的!


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


这个,我觉得是版本问题