Hi Philip,

On 7/02/13 15:34, Philip Lamb wrote:
> UpdateCallback: className is AnimationPathCallback and type_id.name() is 
> PN3osg12NodeCallbackE
> 
> So it looks like a failure somewhere in RTTI. Both typeid and the 
> dynamic_cast<> fail to
> convert the osg::NodeCallback* to an osg::AnimationPathCallback*. Yet 
> clearly, the
> callback IS the right type, as evidenced by OSG's className() function's 
> output.
> 
> Any ideas about where this kind of issue might be coming from?

This does ring a dim bell somewhere.  Something about type-comparisons being 
done by
pointer rather than name and hence failing when the objects come from different
compilation units.

I haven't got any keywords or links, but I believe there is a compiler flag 
that you can set.

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

Reply via email to