Hello All,

Den 27.04.2013 10:18, skrev Sebastian Messerschmidt:
Hello Anders,


Hi all.

I wanted to start using the latest dev build (3.1.5) with VisualStudio 2012. 64Bit.

However, I immediately got a few problems:

#1.WARNING: The warning: fstream(41): warning C4250: 'osgDB::fstream' : inherits 'std::basic_ostream<_Elem,_Traits>::std::basic_ostream<_Elem,_Traits>::_Add_vtordisp2' via dominance

From the class class OSGDB_EXPORT fstream : public std::fstream

Is still very much present and give a lot of warnings all over the place.
The first warning has been discussed more than once.
If you get linker errors somewhere later on, the only workaround I know of is to set the linker to /FORCE: MULTIPLE


I tried /FORCE: MULTIPLE , but it couln't solve the linker errors I got, using VS2012 Update2 (v11_xp platform toolset). I was unable to build my app and I was searching for the reason:

std::ofstream is used directly somewhere in my app-code, the kode was including <osgDB/FileUtils>. It compiled, but it didn't link the libs.

I have changed the code using #include <fstream> instead , and outcommented "#include <osgDB/FileUtils>" , now everything was linking again and I got my app built this way.


Before using Visual Studio 2012, there was a lot of compiler warnings regarding some ofstream issues, but I could build my stuff . In Visual Studio 2012 (Update II, v110_xp) something has changed.


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

Reply via email to