Never mind, me being an idiot, I had a #define PI laying around elsewhere in
my code.

Cheers
Tom

On 17 September 2010 10:58, Thomas Hogarth <[email protected]>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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to