Hi all

The previous post had a CMake snippet that was bad. Here's one that
actually works:

# with visual studio 2010 we get multiply defined symbols
if(MSVC)
  if(${MSVC_VERSION} STREQUAL "1600")
    message("Visual Studio 2010 (${MSVC_VERSION}) build fix at play
(/FORCE:MULTIPLE)")
    set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}
/FORCE:MULTIPLE")
  endif()
endif()


sorry
Mattias

On Wed, Sep 7, 2011 at 9:51 PM, Mattias Helsing <helsin...@gmail.com> wrote:
> Hello Ethan
>
> I wonder if you have hit a problem reported earlier. see:
>
> http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2010-August/044528.html
>
> It is reported as a bug in msvc, and I haven't tracked it for a while.
> Try and set /FORCE:MULTIPLE in the linker param section for the vpd
> library
>
> A more long lasting solution is to set this in a CMakeLists.txt:
> if(MSVC)
>  if(${MSVC_VERSION} STREQUAL 1600)
>    message("msvc2010 build fix /FORCE:MULTIPLE")
>    set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} /FORCE:MULTIPLE)
>  endif()
> endif()
>
> I don't have the sp1 for my msvc2010 so I don't know if it fixes this issue
>
> cheers
> Mattias
>
> On Wed, Sep 7, 2011 at 8:56 PM, Ethan Fahy <ethanf...@gmail.com> wrote:
>> I am using the following:
>> OSG debug from here:
>> http://openscenegraph.alphapixel.com/sites/default/files/osgdownload/3.0.0/OpenSceneGraph-3.0.0-VS10.0.30319-x86-debug-12681.7z
>> OSG release from here:
>> http://openscenegraph.alphapixel.com/sites/default/files/osgdownload/3.0.0/OpenSceneGraph-3.0.0-VS10.0.30319-x86-release-12681.7z
>> OSG 3ryparty from here:
>> http://members.iinet.net.au/~bchrist/3rdParty_VC10_x86_x64.zip
>>
>> I am on Windows 7 Pro 32-bit.  CMake version 2.8.5.  Visual Studio 2010 w/ 
>> all latest updates.
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=42505#42505
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to