Hi J-S

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay
> Sent: Monday, June 23, 2008 11:03 PM
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] Windows build is broken
...
> On a related note, I got an error in osgthirdpersonview: "near" and
> "far" are defined by windows.h (or a header included from windows.h),
> and since that's being included everywhere now, there was a clash with
> the variables of the same name in that example. Just renaming them
> fixed
> it. I can submit that or you can decide on a suitable name and submit
> it.

I believe the simple tokens "near" and "far" are keywords in the VS compiler (a 
legacy of the distinction between the near and far pointers of the x86 
architecture way way back when)

To avoid the subtle (and not always informative) error messages, I always use 
"znear" and "zfar".

-- mew

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to