Hi,

I'm upgrading our app to VC9 and also our OpenSG 1.8 snapshot from 
2007-11-30 to something more recent. It runs fine in release mode, but 
fails in debug.

Now, I am doing some magic, so I suspect it's related to that, but I've 
been fiddling with it for two weeks now and just wanted to check if 
anyone else has any advice.

The main thing is that we compile our app with some more _SCL-defines 
that OpenSG does by default. I've hacked these into Sconstruct:

         if _po.getOption('no_secure_stl'):
             env.Append(CPPDEFINES=['_SECURE_SCL=0'])
             env.Append(CPPDEFINES=['_SECURE_STL_THROWS=0'])
             env.Append(CPPDEFINES=['_HAS_ITERATOR_DEBUGGING=0'])
             env.Append(CPPDEFINES=['_SCL_SECURE_NO_WARNINGS'])
             env.Append(CPPDEFINES=['_SCL_SECURE_NO_DEPRECATE'])
             env.Append(CPPDEFINES=['_CRT_SECURE_NO_DEPRECATE'])

in all three places where vc8/9 is used, just to be consistent. The 
scons-output confirms these being passed to the compiler.

It compiles just fine (both OpenSG itself and all our app code that uses 
OpenSG) and works in release mode, but running in debug I get strange 
errors, such as:

  * Counting the FieldContainerStore goes way past end(), 
(stl-incompatibility?)
  * Window->deactivate() complains about return address corruption (and 
suggests different calling conventions).

I believe this has to do with the defines and all, but I've managed to 
recompile boost using those defines, and that works, so I wonder if 
there's anything I might've forgotten/overlooked?

Any ideas anyone?

Cheers,
/Marcus, who is again cleaing/rebuilding OpenSG for the umptieth time, 
just to be 110% sure.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to