   OpenGL Performer
  I have been trying to Make/compile a c++ file and have been receiving these errors.g++ -c grabberDCS.c++ -I/usr/local/CAVE/include -OgrabberDCS.c++: In member function `void grabberDCS::GetWandMatrix(pfMatrix&)':grabberDCS.c++:72: error: syntax error before `||' tokengrabberDCS.c++:73: error: `pos' undeclared (first use this function)grabberDCS.c++:73: error: (Each undeclared identifier is reported only once for   each function it appears in.)grabberDCS.c++:74: error: syntax error before `||' tokengrabberDCS.c++:76: error: syntax error before `||' tokengrabberDCS.c++:77: error: syntax error before `||' tokengrabberDCS.c++:78: error: syntax error before `||' tokengrabberDCS.c++: In member function `void   grabberDCS::GetInverseWandMatrix(pfMatrix&)':grabberDCS.c++:84: error: syntax error before `||' tokengrabberDCS.c++:86: error: syntax error before `||' tokengrabberDCS.c++:87: error: syntax error before `||' tokengrabberDCS.c++:88: error: syntax error before `||' tokengrabberDCS.c++:89: error: syntax error before `||' tokenmake: *** [grabberDCS.o] Error 1Can anyone help me understanding what might be the problem?The Header file grabberDCS is as below:#ifndef _grabberDCS_h_#define _grabberDCS_h_#include <Performer/pf/pfDCS.h>#include <Performer/pr/pfType.h>class grabberDCS : public pfDCS   {   public:    grabberDCS(void);    virtual void grab(void);    virtual void release(void);    virtual int isGrabbed(void);    virtual int app(pfTraverser*);    virtual int needsApp(void);   private:    int grabbed_;    pfMatrix grabMat_;    void GetWandMatrix(pfMatrix&);    void GetInverseWandMatrix(pfMatrix&);   /* Stuff required to make this a Performer class */   public:    static void init(void);static pfType* getClassType(void){ return classType_; };   private:    static pfType* classType_;   };#endif   
  Those aren't OpenGL related errors. But the errors are inside grabberDCS.c++, so check that.   ;  Not OpenGL but no big.You're looking at and giving us the wrong file though. Check/post the .cpp file, not the .h   