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 -O
grabberDCS.c++: In member function `void grabberDCS::GetWandMatrix(pfMatrix&)':
grabberDCS.c++:72: error: syntax error before `||' token
grabberDCS.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 `||' token
grabberDCS.c++:76: error: syntax error before `||' token
grabberDCS.c++:77: error: syntax error before `||' token
grabberDCS.c++:78: error: syntax error before `||' token
grabberDCS.c++: In member function `void
grabberDCS::GetInverseWandMatrix(pfMatrix&)':
grabberDCS.c++:84: error: syntax error before `||' token
grabberDCS.c++:86: error: syntax error before `||' token
grabberDCS.c++:87: error: syntax error before `||' token
grabberDCS.c++:88: error: syntax error before `||' token
grabberDCS.c++:89: error: syntax error before `||' token
make: *** [grabberDCS.o] Error 1
Can 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
You're looking at and giving us the wrong file though. Check/post the .cpp file, not the .h
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement