Hi Lukas, There is no way for a 3rd Party to know what is amiss with your code with such scant details. What I can say is that with a compiler error like this it's entirely down to your own C++ code and really nothing to with the OSG. This is an OSG forum/mailing list, we can help you with OSG stuff, but C++ programming is something you best learn with online resources and books.
Another general note, don't use C pointers for scene graph objects, you'll very likely end up with dangling pointers and crashes. Robert. On 5 January 2014 23:17, Lukas Koebler <lukasnachhi...@gmail.com> wrote: > Hi, > > the top of my programm is called "Plugin". > Till now I got to add a quadrangle: > > Code: > > //header: > std::list<Quadrangle *> m_BoxList; > void addBox(Quadrangle *box,bool setdefaultpos); > //cpp: > void Plugin::addBox(Quadrangle *box,bool setdefaultpos) > { > m_BoxList.push_back(box); > if(setdefaultpos) setBoxPosition(box); > } > > > > In the header of the Quadrangle use the osgWidget::Box > > Code: > > class Quadrangle : public osgWidget::Box > { > public: > Quadrangle (std::string name, osgWidget::Box::BoxType, osg::Vec4 color); > } > > > > everything is working fine till now. > But now I wanna add on the same way a cube and i get this disgusting error > C2065: 'Cube': undeclared identifier. > I tried it on so many ways now I hope one of you can tell me my fould. > > Code: > > //header: > std::list<Cube*> m_CubeList; > void addBox(Cube *cube); > //cpp: > void Plugin::addCube(Cube *cube) > { > m_CubeList.push_back(cube); > } > > > > And at least the header of the Cube Construktor: > > Code: > > class Cube : public osg::Geode > { > > public: > Cube(); > } > > > > "All data are reduced" > > Thank you! > > Cheers, > Lukas > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=57798#57798 > > > > > > _______________________________________________ > 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