Add the following line before windef.h or windows.h or add NOMINMAX to
the preprocessor definitions list.
 
#define NOMINMAX
 
Here is some more information http://support.microsoft.com/kb/143208.
 
You might want to look at WIN32_LEAN_AND_MEAN and what it does.  Look in
windows.h and you will find a gaggle of NO* things you can define.


________________________________

        From: Bradford, Chase [mailto:[EMAIL PROTECTED] 
        Sent: Thursday, May 03, 2007 4:20 PM
        To: osg users
        Subject: [osg-users] Preprocessor Polution from Windef.h
        
        

        Hello OSG Users,

         

        Have there been any attempts to clean up some of the #defines
that trickle into the include tree from windef.h?  Not being able to use
the words min or max, as in std::min std::max, is starting to get to me,
and I was wondering if anyone else has had issues with this too.  I've
never managed to find the exact path in my includes that is causing this
to enter, but maybe someone else has traced it before.

         

        Thanks for any info.

        Chase

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to