Hi Bengt,

This is a VS linker issue.
Please add /FORCE:Multiple to your linker options for the complaining module/linking application

This came up multiple times now, and I wish we could put it to a FAQ.



I get errors for ctors and dtors of std::istream and std::ostream when I link my application to the OSG 3.2.0 / VS2013 libraries (if I use these classes in my code).

I think it has to do with the osgDB::istream and osgDB::ostream classes which derives from the std variants.

I took the labour to rename these to db_istream/ostream but it didn't help (if it had there would have been some strange bug in VS linker). So I ruled that one out at least.

I also noted that during OSG compilation I got complaints about conflicting MSVCRT libraries from (at least) freefont loader. I resolved this according to VS suggestion, but it didn't help either.

Anyone having noticed and solved this problem before?

Bengt


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

Reply via email to