Hi Sebastian,

I found the post and submitted a fix.

It just need a minor tweak to include quotation marks to fix the semicolon
that appeared in the linker options.

 

Thanks.

 

Martin

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Sebastian
Messerschmidt
Sent: 27 May 2013 09:33
To: OpenSceneGraph Users
Subject: Re: [osg-users] VPB build error

 

Hi Martin, 
please search the forum and the mailing list.

This is a bug in Visual Studio. 
To get VPB linked (and possibly other tools) add  /FORCE:Multiple to your
linker options. 

@all:
Should this go to the FAQ/HowTo section on the website?

@Robert:
This seems to be an error in VS linker. I think there was proposed patch
(something about implementing the destructor IIRC). 
It would be nice if we could provide a workaround, as it affects basically
every VS2010/12 application linking with osg based libraries.

Hi All,

I am receiving a build error with VPB under VS2012 using Windows 8(32bit
build of OSG).

 

Error      49           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) already defined
in SpatialProperties.obj
H:\Coding\OSG\VirtualPlanetBuilder\src\vpb\osgDB.lib(osg97-osgDB.dll)
vpb

Error      50           error LNK1169: one or more multiply defined symbols
found                H:\Coding\OSG\VirtualPlanetBuilder\lib\Release\vpb.dll
vpb

 

Not sure why though!

 

Thanks

 

Martin Naylor

 






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

 

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

Reply via email to