Hanging chad

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

Hanging chad

Postby genux » Thu Mar 25, 2010 10:23 am

Was wondering if anyone has got the full source code for hanging chad, I got one but I am getting errors trying to compile it.

Code: Select all
In file included from chad.cpp:1:
chad.h:1:19: error: Ogre.h: No such file or directory
chad.h:3:27: error: SDL/SDL_mixer.h: No such file or directory
In file included from chad.h:7,
                 from chad.cpp:1:
chadframelistener.h:1:32: error: OgreFrameListener.h: No such file or directory
chadframelistener.h:2:33: error: OgreEventListeners.h: No such file or directory
In file included from chad.cpp:1:
chad.h:5: error: ‘Ogre’ is not a namespace-name
chad.h:5: error: expected namespace-name before ‘;’ token
In file included from chad.h:7,
                 from chad.cpp:1:
chadframelistener.h:4: error: expected class-name before ‘,’ token
chadframelistener.h:4: error: expected class-name before ‘,’ token
chadframelistener.h:4: error: expected class-name before ‘{’ token
chadframelistener.h:6: error: expected ‘)’ before ‘*’ token
chadframelistener.h:12: error: ISO C++ forbids declaration of ‘FrameEvent’ with no type
chadframelistener.h:12: error: expected ‘,’ or ‘...’ before ‘&’ token
chadframelistener.h:20: error: ISO C++ forbids declaration of ‘FrameEvent’ with no type
chadframelistener.h:20: error: expected ‘,’ or ‘...’ before ‘&’ token
chadframelistener.h:24: error: ‘MouseEvent’ has not been declared
chadframelistener.h:25: error: ‘MouseEvent’ has not been declared
chadframelistener.h:26: error: ‘MouseEvent’ has not been declared
chadframelistener.h:28: error: ‘MouseEvent’ has not been declared
chadframelistener.h:29: error: ‘MouseEvent’ has not been declared
chadframelistener.h:31: error: ‘MouseEvent’ has not been declared
chadframelistener.h:36: error: ‘MouseEvent’ has not been declared
chadframelistener.h:42: error: ISO C++ forbids declaration of ‘InputReader’ with no type


I did notice that someone else said that there should be a ORGE directory but I do not have that ?

I was just wondering if anyone had the full source code ? PM if you want to the source code if it is not the best place to have as a attachment..

thanks genux
genux
 
Posts: 1
Joined: Thu Mar 25, 2010 10:18 am

Postby nelz » Thu Mar 25, 2010 1:55 pm

You don't say which distro you're using but it looks like you may be missing the -dev or -devel packages for ogre and sdl. Check which of these libraries are installed in your package manager then install the corresponding develop files/
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8469
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests