Jump to content
  • Advertisement
Sign in to follow this  
DJ9

OpenGL OpenGL Performer

This topic is 3315 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Not OpenGL but no big.

You're looking at and giving us the wrong file though. Check/post the .cpp file, not the .h

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!