Thank you Christopher . I found out my mistake as I was doing
using namespace odg before one header file and Drawable was getting into the
Global namespace.

Amal.

On 4/22/07, Dorosky, Christopher G <[EMAIL PROTECTED]> wrote:

 Make sure you have the right headers at the top of the file, and remember
the namespacing. osg::Drawable

Not sure if it was typo or not, or if C++ cares, but it's usually:

class xyz : public osg::Drawable {
// stuff
};



 ------------------------------
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Amal
*Sent:* Saturday, April 21, 2007 9:30 PM
*To:* [email protected]
*Subject:* [osg-users] Compiling Error.


Hi ,
 Iam new to OSG.
I was trying to create a subclass of Drawable and use it in a program.

so my code goes something like

class xyz:public Drawable {
 //FUnctions and variables here

};

And in the main I try to create a object of xyz and attach it to the
geode. Now I get a compilation error like ...

/usr/X11R6/include/X11/Xlib.h:711: error: 'Drawable' does not name a type
/usr/X11R6/include/X11/Xlib.h:724: error: 'Drawable' does not name a type
/usr/X11R6/include/X11/Xlib.h:1462: error: 'Drawable' has not been
declared
/usr/X11R6/include/X11/Xlib.h:1472: error: 'Drawable' has not been
declared
/usr/X11R6/include/X11/Xlib.h:1590: error: 'Drawable' has not been
declared
and many more similar errors ...

 Can I know what is the issue ? And I have to derive from Drawable
directly as I hope to make some classes for Shapes like Sphere etc.

Amal.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to