[osg-users] osgDB ifstream / ofstream conflict

Mourad Boufarguine mourad.boufarguine at gmail.com
Wed Apr 20 02:50:20 PDT 2011


Hi Vincent,

On Mon, Apr 4, 2011 at 4:36 PM, Vincent Bourdier <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/30d35c1c/attachment-0004.htm>


More information about the osg-users mailing list