<div dir="ltr"><div><div>Hi Karl,<br><br></div>I haven't heard of this specific problem before, but then most users won't be subclassing from GraphicsWindowX11.  In principle I can't see any reason why it wouldn't work.  Without code in front of me that fails to compile I can only provides guesses as to what is amiss - my best guess is that either a X11 header needs to be added, or the ordering needs to be adjusted.<br><br></div><div>I can't be any more specific without seeing the problem first hand and attempting to resolve it.<br></div><div><br></div>Robert.<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 May 2015 at 15:32, Cary, Karl A. <span dir="ltr"><<a href="mailto:KARL.A.CARY@leidos.com" target="_blank">KARL.A.CARY@leidos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to subclass the GraphicsWindowX11 class in order to provide a custom swapBuffersImplementation. However, when I do this I then get a really random error in the middle of one of my enumerations (expected identifier before numeric constant). It happens when I include osgViewer/api/X11/GraphicsWindowX11, which I have to include in order to subclass GraphicsWindowX11. If not I am told 'expected class name before {'. As for the enumeration, it happens on the definition of an enumeration value called 'None' (NOTE: the value is called None, not the enumeration). It is a 3rd party header/library so it cannot be changed. Any idea what is going on? Or is there a different way I need to be including/subclassing/declaring GraphicsWindowX11? Thank you.<br>
<br>
#include <osgViewer/GraphicsWindow><br>
#include <osgViewer/api/X11/GraphicsWindowX11><br>
<br>
class MyWindow : public osgViewer::GraphicsWindowX11<br>
{<br>
        public:<br>
                MyWindow(osg::GraphicsContext::Traits* traits):<br>
                        osgViewer::GraphicsWindowX11(traits) {}<br>
<br>
                virtual void swapBuffersImplementation();<br>
};<br>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>