[osg-users] osgDB ifstream / ofstream conflict

Vincent Bourdier vincent.bourdier at gmail.com
Wed Apr 20 05:54:36 PDT 2011


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.bourdier at gmail.com <mailto:vincent.bourdier at gmail.com>> wrote:
>
>     2>TsLib_MDdNET2010.lib(IwPoly.obj) : error LNK2005: "public: void
>     __thiscall std::basic_ifstream<char,struct std::char_traits<char>
>     >::close(void)"
>     (?close@?$basic_ifstream at DU?$char_traits at D@std@@@std@@QAEXXZ)
>     already defined in osgDBd.lib(osg65-osgDBd.dll)
>     2>TsLib_MDdNET2010.lib(IwBrepData.obj) : error LNK2005: "public:
>     void __thiscall std::basic_ifstream<char,struct
>     std::char_traits<char> >::close(void)"
>     (?close@?$basic_ifstream at DU?$char_traits at D@std@@@std@@QAEXXZ)
>     already defined in osgDBd.lib(osg65-osgDBd.dll)
>
>
> It seems like a static/dynamic c++ runtime conflict. Check if osg and 
> TsLib_MDdNET2010 are linked against the same type of c++ runtime (both 
> with /MTd flag or both with /MDd flag)
>
> Mourad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20110420/88418bc7/attachment-0004.htm>


More information about the osg-users mailing list