Hi everybody. I fetched a OpenSG 2 copy from the Github yesterday and have some trouble getting the debug build of my software up and running on Windows (7 Pro, 32Bit, VS2010). I'm sure that one of you guys can help me with this.
Both debug and release versions of OpenSG build fine. However, when I try to compile my own software in Debug mode, I get Error 23 error C1189: #error : "mixed up compiler settings, OpenSG libs with OSG_DISABLE_MICROSOFT_SECURE_CXXX off, but _SECURE_SCL set" c:\libs\opensginstall\include\opensg\osgconfig.h 1077 Now, I'm a bit puzzled with this, because first I tried to build OpenSG with the OSG_DISABLE_SECURE_MICROSOFT_CXXX flag set to on and it complained about _SECURE_SCL, too. Ok, so maybe I get something wrong here. In CMake OSG_DISABLE_SECURE_MICROSOFT_CXXX is not set OSG_DISABLE_MS_ITERATOR_DEBUGGING is not set Microsoft documentation says that "In debug mode, the default value for *_SECURE_SCL* is 1, meaning checked iterators are enabled. In release mode, the default value for _SECURE_SCL is 0." (http://msdn.microsoft.com/de-de/library/aa985965.aspx) If I make sure that OSG_DEBUG and _DEBUG are set, I get pretty much exactly what the compiler tried to avoid by bailing out before: Error 46 error C2665: 'std::_Copy_impl' : none of the 2 overloads could convert all the argument types c:\program files\microsoft visual studio 10.0\vc\include\xutility 2216 Ok, so I'm lost between many Preprocessor, CMake and Visual Studio options. Could anybody point me on the right track to make sure that I can build my software in debug and in release mode? Actually I don't even care about debugging OpenSG (I'm assuming it just works ;) ), all I want is to display values and debug my own software properly. Am I supposed to use the DebugOpt or ReleaseNoOpt build configurations for this? Something else: In OSGGLDefineMapper.h, line 163, I have to change this #include <OSGGLDefineMapper.inl> to #include "OSGGLDefineMapper.inl" to avoid MSVC complaining about the missing inline include. Thanks, Dominik ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users