Hi,

Sorry for an update so soon but I did try something that would allow anyone to 
test this without external projects/dlls.

I noticed that we didnt have the OSG_USE_UTF8_FILENAME defined as we dont need 
UTF8 support.  If you look at the code in fstream (in the osgDB project) you 
would see that would mean that the derived osgDB::fstream class isnt really 
needed.  

Because of this I decided to remove the classes and replace with:
        typedef std::fstream fstream;
        typedef std::ofstream ofstream;
        typedef std::ifstream ifstream;
This way when someone calls osgDB::fstream it will just make a call to std 
stream instead.

I recompile OSG and I get the same errors now in OSG as I was getting in my 
project.  the linker errors are in osgViewer and Plugins openflight.

Error   6       error LNK2005: "public: __thiscall 
std::basic_ofstream<char,struct std::char_traits<char> 
>::basic_ofstream<char,struct std::char_traits<char> >(void)" 
(??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ) already defined in 
VertexPaletteManager.obj   
C:\DVTE\Externals\OpenSceneGraph\build\src\osgPlugins\OpenFlight\osgDBd.lib(osgDBd.dll)
 Plugins openflight

I would assume the typdef should be fine but this might help someone else 
determine the problem b/c I am still lost!?!?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50916#50916





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

Reply via email to