Hello Dominik, On 04/21/2011 11:03 AM, Dominik Rau wrote: > 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.
hmm, IIRC VS2010 changed the defaults for some of these settings compared to earlier versions. I don't have a VS 2010 handy and will be travelling the next few days, perhaps someone else on the list is using VS 2010 and can share their experience? > 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? IIRC that is DebugOpt (linked against the MS debug runtime, but with optimization applied). Cheers, Carsten ------------------------------------------------------------------------------ Fulfilling the Lean Software Promise Lean software platforms are now widely adopted and the benefits have been demonstrated beyond question. Learn why your peers are replacing JEE containers with lightweight application servers - and what you can gain from the move. http://p.sf.net/sfu/vmware-sfemails _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users