On 6/16/2010 3:10 AM, Christiansen, Brad wrote:

Hi,

 

I have managed to build OSG (and 3rd party dependencies) using Visual Studio 2010 but I have hit a snag with VPB. The error has been reported before by Matrin Naylor, but there didn’t seem to be any resolution. The error is:

 

1>osgDB.lib(osgDB.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_d?$basic_ofstr...@du?$char_traits@d...@std@@@std@@QAEXXZ) already defined in SpatialProperties.obj

1>     Creating library D:/adi_vsfz/projects/OSG/osg-trunk-2010/vpb-build/lib/Release/vpb.lib and object D:/adi_vsfz/projects/OSG/osg-trunk-2010/vpb-build/lib/Release/vpb.exp

1>D:\adi_vsfz\projects\OSG\osg-trunk-2010\vpb-build\lib\Release\vpb.dll : fatal error LNK1169: one or more multiply defined symbols found


You can always tell the linker to ignore the problem with /FORCE:MULTIPLE. I'd only do that as a last resort though because there might actually be a problem here.

Are both projects compiled with VS2010 with the same settings?

Cory
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to