Hi Tom, Is this an include ordering issue? Is some other header doing a #define of PI that is introducing problems?
Robert. On Fri, Sep 17, 2010 at 10:58 AM, Thomas Hogarth <thomas.hoga...@googlemail.com> wrote: > Hi All > I have a problem witth the EaseMotion header from osgAnimation. I've been > using it in some projects no problem, but it seems sometimes I can't get it > to compile unless I find the perfect place to include it (normally the > absolute first include) > When I compile I get the following errors using visual studio 2008 and osg > 2.8.3 > 1>c:\Work\Tom\MagicSymbol > Projects\OpenSceneGraph-2.8.3\include\osgAnimation/EaseMotion(166) : error > C2589: 'constant' : illegal token on right side of '::' > 1>c:\Work\Tom\MagicSymbol > Projects\OpenSceneGraph-2.8.3\include\osgAnimation/EaseMotion(166) : error > C2059: syntax error : '::' > This refers to the following lines from EaseMotion > inline static void getValueAt(float t, float& result) > { > (166)>> result = pow(2.0f, -10.0f * t) * sinf((t - 0.3f / 4.0f) * > (2.0f * osg::PI) / 0.3f) + 1.0f; > } > Seems to be the osg::PI. > Like I say I've had it compiling and working in other projects so could it > be some kind of compiler flag related to inline functions? > Thanks for any help > Tom > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org