Gerrit Voß wrote:
> Hi,
> 
> short question. what are the correct windows debug define settings or
> if this is not well defined, which are the once you expect to be set ?
> 
> Debug        -> -D _DEBUG
> DebugOpt     -> ? never used it, does it need -D _DEBUG or -D NDEBUG ?
> ReleaseNoOpt -> ? So far I did not use -D NDEBUG or -D _DEBUG and that
>                   seem to work
> Releae       -> -D NDEBUG

_DEBUG is automatically defined by the compiler when building with /MTd, 
MDd, as per:

http://msdn.microsoft.com/en-us/library/0b98s6w8(VS.71).aspx
and
http://msdn.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx (more info 
here)

IIRC, you shouldn't need to define those yourself.

NDEBUG is related to the meaning of ASSERT and IIRC defined in the C++ 
standard, although I rarely use it myself. I think the right thing would 
be to disable asserts (i.e. define NDEBUG) in DebugOpt and Release.

See f.ex. http://msdn.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx
Or a few pages down here:
http://www.velocityreviews.com/forums/t281934-difference-between-debug-and-ndebug.html

Cheers,
/Marcus


------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to