Re: [osg-users] osgDB ifstream / ofstream conflict

2013-10-01 Thread Florian Kolbe
Hi, so far, /FORCE:multiple has worked for me. Thank you! Cheers, Florian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56555#56555 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] osgDB ifstream / ofstream conflict

2013-09-26 Thread Florian Kolbe
Hi, I am now running against the same issue. I checked to see that everything is compiled with /MD. I'm trying to build osg 3.2.0 x64 with VS2012 - 3rd-Party Binaries from: www.helleboreconsulting.com/index.php/open-source/openscenegraph - OSG built by myself - my project runs into: Code: 4*

Re: [osg-users] osgDB ifstream / ofstream conflict

2013-09-26 Thread Sebastian Messerschmidt
Hi Florian, You can get around the fatal error by adding /FORCE: MULTIPLE to your linker options. This seems to be some odd VS2010 and beyond conformance problem. Basically I get this error in almost any application linking to osgDB and using fstream. It is somehow related to the derived

Re: [osg-users] osgDB ifstream / ofstream conflict

2013-09-26 Thread Braden Edmunds
I had the same problem with VS2010 and there are two ways to get around it. 1. Use /FORCE:multiple 2. Create a typdef: Code: #pragma once // Compatibility layer for VS2010 bug. The compiler tries to link the same // multiple symbols in for the OSG fstream classes which inherit from the STL

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-05-17 Thread Andrew Cunningham
Hi Vincent, I have been using Visual Studio 2010 and fstreams and OSG DLLs with no issues at all. The only possibility is you are compiling with incompatible compiler options between OSG and your other library. All files must be compiled /MD(d) and of course compiled with Visual Studio 2010.

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-29 Thread Frederic Bouvier
Of Vincent Bourdier Sent: Wednesday, 27 April 2011 11:47 PM To: osg user Subject: Re: [osg-users] osgDB ifstream / ofstream conflict Hi, Sorry to insist but I would appreciate any advices about this issue. Maybe I'm the only one who encountered it, but the patch I did is not so... clean to my

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-29 Thread Vincent Bourdier
-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Vincent Bourdier Sent: Wednesday, 27 April 2011 11:47 PM To: osg user Subject: Re: [osg-users] osgDB ifstream / ofstream conflict Hi, Sorry to insist but I would appreciate any advices about

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-28 Thread Christiansen, Brad
: Wednesday, 27 April 2011 11:47 PM To: osg user Subject: Re: [osg-users] osgDB ifstream / ofstream conflict Hi, Sorry to insist but I would appreciate any advices about this issue. Maybe I'm the only one who encountered it, but the patch I did is not so... clean to my mind... Thanks. Regards

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-27 Thread Vincent Bourdier
Hi, Sorry to insist but I would appreciate any advices about this issue. Maybe I'm the only one who encountered it, but the patch I did is not so... clean to my mind... Thanks. Regards, Vincent. Le 21/04/2011 14:50, Vincent Bourdier a écrit : Hi all, I just found a fix after some

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-21 Thread Vincent Bourdier
Hi all, I just found a fix after some tests, but it is not a fix I am proud of. I just added the close() method in osgDB/fstream implementation, so there is no conflict because my fstream implementation uses osgDB/fstream and not osgDB/fstream AND std::fstream. I will continue to investigate

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-20 Thread Vincent Bourdier
Hi all, No advices or ideas ? Am I the only one this this issue Regards, Vincent Le 04/04/2011 17:36, Vincent Bourdier a écrit : Hi all, I've an issue concerning the std::ifstream in my application. I know that I need to use osgDB::ifstream instead of std::ifstream and I did everywhere

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-20 Thread Mourad Boufarguine
Hi Vincent, On Mon, Apr 4, 2011 at 4:36 PM, Vincent Bourdier vincent.bourd...@gmail.com wrote: 2TsLib_MDdNET2010.lib(IwPoly.obj) : error LNK2005: public: void __thiscall std::basic_ifstreamchar,struct std::char_traitschar ::close(void)

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-20 Thread Vincent Bourdier
Hi Mourad Thanks for your answer but I already checked that. TsLib_MDdNET2010 is a static lib but linked with /MD(d), like my application... Vincent. Le 20/04/2011 11:50, Mourad Boufarguine a écrit : Hi Vincent, On Mon, Apr 4, 2011 at 4:36 PM, Vincent Bourdier vincent.bourd...@gmail.com

[osg-users] osgDB ifstream / ofstream conflict

2011-04-04 Thread Vincent Bourdier
Hi all, I've an issue concerning the std::ifstream in my application. I know that I need to use osgDB::ifstream instead of std::ifstream and I did everywhere in my code. But, my project links with an other lib than OSG, and this library is using std::ifstream and std::ofstream, and this