Hi Mike,

The Visual Studio multiple defined issue is very different to one of
finding OpenThreads.  The multiple defined issue should now be
resolved in git master and up coming OSG-3.6.

Robert.

On 14 September 2016 at 23:23, Mike Metcalf <[email protected]> wrote:
> kyungsoo,
>
> I skimmed over most of the details of this thread, so please forgive me if 
> this is of no help, but we had a similar problem and fixed it by adding the 
> following to one of our CMakeLists.txt:
>
>
> Code:
>
> # AVOID DUMB MSVC MULTIPLE INCLUSION ERROR WITH OSGBD
> # This relates to derivation of osgDB::ifstream from std::ifstream.
> # Allowing the multiple inclusion creates a linker warning.
> # For more info on the issue:
> # google: osgdb ifstream multiple definition
> # http://forum.openscenegraph.org/viewtopic.php?p=50916#50916
> # http://forum.openscenegraph.org/viewtopic.php?t=12913&view=next
> # https://groups.google.com/forum/#!topic/osg-users/xneWFpi9wI0
> if(MSVC)
> SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FORCE:multiple")
> endif()
>
>
>
>
> Please note in those comments the forum posts that discuss the problem in 
> greater detail.
>
> I do hope this helps.
>
> -Mike Metcalf
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68612#68612
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to