Lots of errors

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Lots of errors

Post by tomtetlaw »

I am sure that I am just missing like one semi-colon somewhere which is screwing everything up. I started getting lots of errors after I added the API namespace(in shared.h). When I try to compile my code, I get all these errors:

Code: Select all

------ Build started: Project: IrrlichtGameEngine, Configuration: Debug Win32 ------
Compiling...
C_BaseEntity.cpp
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(13) : error C2504: 'C_BaseEntity' : base class undefined
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(14) : error C2061: syntax error : identifier 'C_BaseEntity'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(14) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(14) : warning C4183: 'DECLARE_CLASS': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(25) : error C2061: syntax error : identifier 'vPosition'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(25) : warning C4183: 'ADD_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(26) : error C2061: syntax error : identifier 'vRotation'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(26) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(26) : error C2535: 'int C_BaseRenderable::ADD_PROPERTY(void)' : member function already defined or declared
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(25) : see declaration of 'C_BaseRenderable::ADD_PROPERTY'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(26) : warning C4183: 'ADD_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(27) : error C2061: syntax error : identifier 'pModel'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(27) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(27) : error C2535: 'int C_BaseRenderable::ADD_PROPERTY(void)' : member function already defined or declared
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(25) : see declaration of 'C_BaseRenderable::ADD_PROPERTY'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(27) : warning C4183: 'ADD_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(28) : error C2061: syntax error : identifier 'pNode'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(28) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(28) : error C2535: 'int C_BaseRenderable::ADD_PROPERTY(void)' : member function already defined or declared
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(25) : see declaration of 'C_BaseRenderable::ADD_PROPERTY'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_baserenderable.h(28) : warning C4183: 'ADD_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(13) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(13) : warning C4183: 'DECLARE_CLASS': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(21) : error C2061: syntax error : identifier 'fMov_speed'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(21) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(21) : warning C4183: 'ADD_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : error C2061: syntax error : identifier 'bFoundTarget'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : error C2061: syntax error : identifier 'fDistanceFromPlayer'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : error C2535: 'int C_BaseZombie::ADD_READONLY_PROPERTY(void)' : member function already defined or declared
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : see declaration of 'C_BaseZombie::ADD_READONLY_PROPERTY'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : error C2061: syntax error : identifier 'nCurrentState'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : error C2535: 'int C_BaseZombie::ADD_READONLY_PROPERTY(void)' : member function already defined or declared
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : see declaration of 'C_BaseZombie::ADD_READONLY_PROPERTY'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : error C2061: syntax error : identifier 'C_BaseEntity'
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(16) : see reference to class template instantiation 'C_BaseThinkable<T>' being compiled
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : warning C4183: 'DECLARE_CLASS': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : error C2061: syntax error : identifier 'tValue'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(56) : error C2470: 'version_info' : looks like a function definition, but there is no parameter list; skipping apparent body
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C2146: syntax error : missing ';' before identifier 'entity_t'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : warning C4138: '*/' found outside of comment
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : error C2059: syntax error : '/'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(69) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(69) : error C2447: '{' : missing function header (old-style formal list?)
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2228: left of '.DriverType' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2228: left of '.WindowSize' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2228: left of '.Bits' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(88) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(88) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(88) : error C2228: left of '.Fullscreen' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(89) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(89) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(89) : error C2228: left of '.Stencilbuffer' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(90) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(90) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(90) : error C2228: left of '.Vsync' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(91) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(91) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(91) : error C2228: left of '.EventReceiver' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(94) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(94) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(97) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(97) : error C2065: 'engine' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(98) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(98) : error C2065: 'engine' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2065: 'driver' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2227: left of '->getVideoDriver' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2065: 'smgr' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2227: left of '->getSceneManager' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2065: 'guienv' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2227: left of '->getGUIEnvironment' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2065: 'pTimer' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2227: left of '->getTimer' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2065: 'uLastTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2065: 'pTimer' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2227: left of '->getTime' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2065: 'camera' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2065: 'smgr' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2227: left of '->addCameraSceneNodeFPS' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2065: 'uCurrentTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2065: 'pTimer' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2227: left of '->getTime' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2065: 'uElapsedTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2065: 'uCurrentTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2065: 'uLastTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2065: 'uLastTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2065: 'uCurrentTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(117) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(117) : error C2065: 'driver' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(117) : error C2227: left of '->beginScene' must point to class/struct/union/generic type
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(117) : fatal error C1003: error count exceeds 100; stopping compilation
C_BaseRenderable.cpp
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(12) : error C2504: 'C_BaseRenderable' : base class undefined
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(13) : error C2061: syntax error : identifier 'C_BaseRenderable'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(13) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(13) : warning C4183: 'DECLARE_CLASS': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(21) : error C2061: syntax error : identifier 'fMov_speed'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(21) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(21) : warning C4183: 'ADD_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : error C2061: syntax error : identifier 'bFoundTarget'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : error C2061: syntax error : identifier 'fDistanceFromPlayer'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : error C2535: 'int C_BaseZombie::ADD_READONLY_PROPERTY(void)' : member function already defined or declared
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : see declaration of 'C_BaseZombie::ADD_READONLY_PROPERTY'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(23) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : error C2061: syntax error : identifier 'nCurrentState'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : error C2535: 'int C_BaseZombie::ADD_READONLY_PROPERTY(void)' : member function already defined or declared
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(22) : see declaration of 'C_BaseZombie::ADD_READONLY_PROPERTY'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basezombie.h(24) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : error C2061: syntax error : identifier 'C_BaseEntity'
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(16) : see reference to class template instantiation 'C_BaseThinkable<T>' being compiled
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : warning C4183: 'DECLARE_CLASS': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : error C2061: syntax error : identifier 'tValue'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(56) : error C2470: 'version_info' : looks like a function definition, but there is no parameter list; skipping apparent body
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C2146: syntax error : missing ';' before identifier 'entity_t'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(64) : error C2146: syntax error : missing ';' before identifier 'renderable_t'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(64) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(64) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : warning C4138: '*/' found outside of comment
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : error C2059: syntax error : '/'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(69) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(69) : error C2447: '{' : missing function header (old-style formal list?)
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2228: left of '.DriverType' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2228: left of '.WindowSize' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2228: left of '.Bits' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(88) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(88) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(88) : error C2228: left of '.Fullscreen' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(89) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(89) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(89) : error C2228: left of '.Stencilbuffer' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(90) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(90) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(90) : error C2228: left of '.Vsync' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(91) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(91) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(91) : error C2228: left of '.EventReceiver' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(93) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(94) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(94) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(97) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(97) : error C2065: 'engine' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(98) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(98) : error C2065: 'engine' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2065: 'driver' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(101) : error C2227: left of '->getVideoDriver' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2065: 'smgr' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(102) : error C2227: left of '->getSceneManager' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2065: 'guienv' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(103) : error C2227: left of '->getGUIEnvironment' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2065: 'pTimer' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2065: 'device' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(105) : error C2227: left of '->getTimer' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2065: 'uLastTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2065: 'pTimer' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(106) : error C2227: left of '->getTime' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2065: 'camera' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2065: 'smgr' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(108) : error C2227: left of '->addCameraSceneNodeFPS' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2065: 'uCurrentTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2065: 'pTimer' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(114) : error C2227: left of '->getTime' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2065: 'uElapsedTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2065: 'uCurrentTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(115) : error C2065: 'uLastTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2065: 'uLastTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(116) : error C2065: 'uCurrentTime' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(117) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(117) : error C2065: 'driver' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(117) : error C2227: left of '->beginScene' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(118) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(118) : error C2065: 'smgr' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(118) : error C2227: left of '->drawAll' must point to class/struct/union/generic type
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(119) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(119) : error C2065: 'guienv' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(119) : error C2227: left of '->drawAll' must point to class/struct/union/generic type
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(119) : fatal error C1003: error count exceeds 100; stopping compilation
C_BaseZombie.cpp
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : error C2061: syntax error : identifier 'C_BaseEntity'
        c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(16) : see reference to class template instantiation 'C_BaseThinkable<T>' being compiled
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(10) : warning C4183: 'DECLARE_CLASS': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : error C2061: syntax error : identifier 'tValue'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\c_basethinkable.h(15) : warning C4183: 'ADD_READONLY_PROPERTY': missing return type; assumed to be a member function returning 'int'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(56) : error C2470: 'version_info' : looks like a function definition, but there is no parameter list; skipping apparent body
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C2146: syntax error : missing ';' before identifier 'entity_t'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(64) : error C2146: syntax error : missing ';' before identifier 'renderable_t'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(64) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(64) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : error C2146: syntax error : missing ';' before identifier 'normalzombie_t'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : warning C4138: '*/' found outside of comment
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(66) : error C2059: syntax error : '/'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(69) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(69) : error C2447: '{' : missing function header (old-style formal list?)
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(85) : error C2228: left of '.DriverType' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(86) : error C2228: left of '.WindowSize' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2653: 'api' : is not a class or namespace name
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2065: 'params' : undeclared identifier
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(87) : error C2228: left of '.Bits' must have class/struct/union
        type is ''unknown-type''
c:\documents and settings\tom\my documents\visual studio 2008\projects\irrlicht game engine\irrlicht game engine\shared.h(88) : error C2653: 'api' : i
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Post by tomtetlaw »

it cut off most of my post :O sorry about that
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
DarkRage4
Posts: 31
Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:

Post by DarkRage4 »

Most of the errors are caused by undeclared valves, Make sure everything in your coding is declared and make sure if you have more than one file the other files are included into your main file
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

it could also be the pipes being undefined. maybe you could check them to make sure they arent the issue.
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Post by tomtetlaw »

what is a pipe?
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Code: Select all

c_baserenderable.h(13) : error C2504: 'C_BaseEntity' : base class undefined 
c_baserenderable.h(14) : error C2061: syntax error : identifier 'C_BaseEntity' 
It looks like the name C_BaseEntity is not visible to the compiler at line 13. This could be because c_baserenderable.h needs to include the file that declares C_BaseEntity, or that you need to tell the compiler what namespace to find C_BaseEntity in.

It looks like you've got a lot of source code that you haven't tried to compile. Most of these errors are because there are undeclared variables, or improperly declared functions.

Travis
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Post by tomtetlaw »

In the C_BaseEntity.h file, I've got the class declaration. Then in C_BaseRenderable, I've got #include "C_BaseEntity.h" so I don't know why it's telling me that it itn't defined, here is those two files:

C_BaseEntity.h:

Code: Select all

#ifndef C_BASEENTITY_H
#define C_BASEENTITY_H
#pragma once

#include "shared.h"

class C_BaseEntity{
	DECLARE_CLASS_NOBASE(C_BaseEntity);
protected:
	int nID;
	static int nCount;
public:
	C_BaseEntity();
	int GetID();
};

#endif
C_BaseRenderable.h:

Code: Select all

#ifndef C_BASERENDERABLE_H
#define C_BASERENDERABLE_H
#pragma once

#include <Irrlicht.h>
#include "C_BaseEntity.h"
#include "shared.h"
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;

class C_BaseRenderable: public C_BaseEntity{
	DECLARE_CLASS(C_BaseRenderable,C_BaseEntity);
protected:
	vector3df vPosition;
	vector3df vRotation;

	IAnimatedMesh* pModel;
	IAnimatedMeshSceneNode* pNode;
public:
	C_BaseRenderable();
	C_BaseRenderable(vector3df vPos,vector3df vRot);

	ADD_PROPERTY(vPosition,vector3df,Position);
	ADD_PROPERTY(vRotation,vector3df,Rotation);
	ADD_PROPERTY(pModel,IAnimatedMesh*,Model);
	ADD_PROPERTY(pNode,IAnimatedMeshSceneNode*,Node);

	void SetMaterialFlag(E_MATERIAL_FLAG eFlag, bool bNewVal);

	virtual void Precache(ISceneManager* pSmgr, IVideoDriver* pDriver);
	virtual void Update();

	virtual void Spawn();
	virtual void Spawn(vector3df& vPos, vector3df& vRot);

	virtual void Delete();
};

#endif
Thanks for all your help so far : )
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I thought the error messages looked familliar. I wish you would have just continued the original thread that you created here.

It looks like the shared.h that you are using isn't valid. This is either because you've copy/pasted code directly from the forums, or because you mistyped and don't know anything about line continuation. If you want to use a line continuation character (the '\' character) to wrap a line, that character must be the last character on the line. You cannot have whitespace following it.

So, your shared.h should end up looking like this. Please note that the forum will insert whitespace at the end of every line. If you are going to copy/paste this code, you must remove this additional whitespace.

Code: Select all

#ifndef SHARED_H 
#define SHARED_H 
#pragma once 

#define DECLARE_CLASS(className,baseClassName) \
   public: \
   virtual const char *GetClassName( ){ return #className; } \
   virtual const char *GetBaseClassName( ){ return #baseClassName; } \
   private: \
   typedef className ThisClass; \
   typedef baseClassName BaseClass; 

#define DECLARE_CLASS_NOBASE(className) \
   public: \
   virtual const char *GetClassName(){ return #className; } \
   private: \
   typedef className ThisClass; 

#define C_MSG(msgText) \
  std::cout << GetClassName() << '(' << nID << ')' << ": " << msgText << std::endl;

#define PRECACHE_MSG() C_MSG("Precached")
#define SPAWN_MSG() C_MSG("Spawned")
#define DELETE_MSG() C_MSG("Deleted")

#define ADD_SIMPLE_CLASS_GETSET(varName,type,propName) \
   type Get##propName(){ return varName; } \
   void Set##propName(type val){ varName = val;  }


#endif 
If you continue to have problems with figuring out what the problem is, you should preprocess your code and look at the result. The /P compile flag will cause the compiler to generate a preprocessed output file that ends with a .i suffix. You should be able to open that up in a text editor and see the resulting code. You should have little problem looking at it to figure out what is wrong.

Travis
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Post by tomtetlaw »

I checked and theres no whitespace after those \ but I will ur the /P thing now.
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Post by tomtetlaw »

I fixed a few problems, when i called the ADD_*_PROPERTY macros I put ; after them so that caused a few errors. I have spent a while looking at the preprocessed file, and I still can't see the source of the rest of the problem.

here is the code that i wrote from the preprocessed file:

Code: Select all

#line 9 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\shared.h"

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
using namespace irrklang;

namespace api
{
	SIrrlichtCreationParameters params;
	IrrlichtDevice *device;
	ISoundEngine* engine;
	IVideoDriver* driver;
	ISceneManager* smgr;
	IGUIEnvironment* guienv;
	ITimer* pTimer;
	u32 uLastTime;
	ICameraSceneNode* camera;
	u32 uCurrentTime;
    u32 uElapsedTime;
}

int SetupAPI();
void UpdateAPI();

#line 68 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\shared.h"
#line 8 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\igengine.h"
#line 1 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_baseentity.h"

#pragma once

class C_BaseEntity{
	public: virtual const char *GetClassName(){ return "C_BaseEntity"; } private: typedef C_BaseEntity ThisClass;
protected:
	int nID;
	static int nCount;
public:
	C_BaseEntity();
	int GetID();
};

int GetTotalObjects();

#line 24 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_baseentity.h"
#line 9 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\igengine.h"
#line 1 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_baserenderable.h"

#pragma once

#line 1 "c:\\documents and settings\\tom\\desktop\\irr\\irrlicht-1.5\\include\\irrlicht.h"

#line 6 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_baserenderable.h"

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;

class C_BaseRenderable: public C_BaseEntity{
	public: virtual const char *GetClassName(){ return "C_BaseRenderable"; } private: typedef C_BaseRenderable ThisClass; typedef C_BaseEntity BaseClass;
protected:
	vector3df vPosition;
	vector3df vRotation;

	IAnimatedMesh* pModel;
	IAnimatedMeshSceneNode* pNode;
public:
	C_BaseRenderable();
	C_BaseRenderable(vector3df vPos,vector3df vRot);

	vector3df GetPosition(){ return vPosition; } void SetPosition(vector3df val){ vPosition = val; }
	vector3df GetRotation(){ return vRotation; } void SetRotation(vector3df val){ vRotation = val; }
	IAnimatedMesh* GetModel(){ return pModel; } void SetModel(IAnimatedMesh* val){ pModel = val; }
	IAnimatedMeshSceneNode* GetNode(){ return pNode; } void SetNode(IAnimatedMeshSceneNode* val){ pNode = val; }

	void SetMaterialFlag(E_MATERIAL_FLAG eFlag, bool bNewVal);

	virtual void Precache(ISceneManager* pSmgr, IVideoDriver* pDriver);
	virtual void Update();

	virtual void Spawn();
	virtual void Spawn(vector3df& vPos, vector3df& vRot);

	virtual void Delete();
};

#line 46 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_baserenderable.h"
#line 10 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\igengine.h"
#line 1 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_basezombie.h"

#pragma once

#line 1 "c:\\documents and settings\\tom\\desktop\\irr\\irrlicht-1.5\\include\\irrlicht.h"

#line 6 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_basezombie.h"

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;

class C_BaseZombie: public C_BaseRenderable{
	public: virtual const char *GetClassName(){ return "C_BaseZombie"; } private: typedef C_BaseZombie ThisClass; typedef C_BaseRenderable BaseClass;
private:
	virtual enum eStates{idle,following,attacking};
	int nCurrentState;
	float fMov_speed;
	f64 fDistanceFromPlayer;
	bool bFoundTarget;
protected:
	float GetSpeed(){ return fMov_speed; } void SetSpeed(float val){ fMov_speed = val; }
	bool GetSightedTarget(){ return bFoundTarget; }
	f64 GetDistance(){ return fDistanceFromPlayer; }
	int GetCurrentState(){ return nCurrentState; }

	virtual void ProcessState(int eCurrentState, ICameraSceneNode* pCamera, u32 uElapsedTime);
public:
	C_BaseZombie();
	C_BaseZombie(vector3df& vPos);
	C_BaseZombie(vector3df& vPos, vector3df& vRot);
	C_BaseZombie(vector3df& vPos, vector3df& vRot, float fSpeed);

	virtual void Precache(ISceneManager* pSmgr, IVideoDriver* pDriver);
	virtual void Update(ICameraSceneNode* pCamera, u32 uElapsedTime);

	virtual void Spawn();
	virtual void Spawn(vector3df& vPos, vector3df& vRot);

	virtual void Delete();
};

typedef C_BaseZombie normalzombie_t;

#line 49 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_basezombie.h"
#line 11 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\igengine.h"
#line 1 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_basethinkable.h"

#pragma once

#line 1 "c:\\documents and settings\\tom\\desktop\\irr\\irrlicht-1.5\\include\\irrlicht.h"

#line 7 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_basethinkable.h"

template<typename T>
class C_BaseThinkable : public C_BaseEntity{
	public: virtual const char *GetClassName(){ return "C_BaseThinkable"; } private: typedef C_BaseThinkable ThisClass; typedef C_BaseEntity BaseClass;
private:
	T tValue;
public:
	virtual T Calculate(){ }
	T GetValue(){ return tValue; };
};

typedef C_BaseThinkable<int> thinkable_int;
typedef C_BaseThinkable<float> thinkable_float;
typedef C_BaseThinkable<double> thinkable_double;
typedef C_BaseThinkable<char> thinkable_char;
typedef C_BaseThinkable<std::string> thinkable_string;
typedef C_BaseThinkable< irr::core::vector3d<irr::core::f32> > thinkable_vec3df;
typedef C_BaseThinkable< irr::core::vector2d<irr::core::f32> > thinkable_vec2df;
typedef C_BaseThinkable< irr::core::vector3d<int> > thinkable_vec3di;
typedef C_BaseThinkable< irr::core::vector2d<int> > thinkable_vec2di;

#line 41 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\c_basethinkable.h"
#line 12 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\igengine.h"

#line 14 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\igengine.h"
#line 11 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\main.cpp"
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
using namespace irrklang;
using namespace std;
using namespace api;

int main()
{
	if(!SetupAPI())
		return 1;

	C_BaseZombie test(vector3df(0,0,50), vector3df(0,0,0));
	test.Precache(smgr, driver);
	test.Spawn();

	C_BaseZombie test2(vector3df(50, 10, 50));
	test2.Precache(smgr, driver);
	test2.Spawn();

	while(device->run())
	{
		test.Update(api::camera, api::uElapsedTime);
		test2.Update(api::camera, api::uElapsedTime);

		UpdateAPI();

	}
	device->drop();
}
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

It looks like you've snipped large portions of the preprocessed output, so I have no idea what the compiler sees.

Code: Select all

#line 9 "c:\\documents and settings\\tom\\my documents\\visual studio 2008\\projects\\irrlicht game engine\\irrlicht game engine\\shared.h" 

using namespace irr; 
using namespace core; 
using namespace scene; 
using namespace video; 
using namespace io; 
using namespace gui; 
using namespace irrklang; 

namespace api 
{ 
   SIrrlichtCreationParameters params; 
   IrrlichtDevice *device; 
   ISoundEngine* engine; 
   IVideoDriver* driver; 
   ISceneManager* smgr; 
   IGUIEnvironment* guienv; 
   ITimer* pTimer; 
   u32 uLastTime; 
   ICameraSceneNode* camera; 
   u32 uCurrentTime; 
    u32 uElapsedTime; 
} 
It looks like your shared.h uses types that are not yet declared (u32, ISceneManager, ...). You need to include Irrlicht.h from the top of shared.h.

Travis
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I had no problem stubbing out an Irrlicht.h and some source files and to get your code to compile. It took about 2 minutes.

Code: Select all

C:\temp>cl /nologo /I. /c C_BaseEntity.cpp
C_BaseEntity.cpp

C:\temp>cl /nologo /I. /c C_BaseRenderable.cpp
C_BaseRenderable.cpp
You can find the stubs here. If you continue to have problems, then perhaps you should reduce your code down to something simpler. Something that you can use to easily discover what is wrong with your code, or post on the forums for others to see.

Travis
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Post by tomtetlaw »

my shared.h does have #include <irrlicht.h>. it;s not showing it in the preprocessed file because the #include directive is a proprocesser directive so all the irrlicht code is in the proprocessed file whithout all the #includes.
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yes, the preprocessor expands the #include to be the contents of the file being included. At a bare minimum, I should see something like...

Code: Select all

#line 1 "c:\\documents and settings\\tom\\desktop\\irr\\irrlicht-1.5\\include\\irrlicht.h" 
I'd actually expect to see the contents of Irrlicht.h (which would be very long). Given that I don't see either ot these things, that means that you've either pasted only part of the preprocessed file (which is likely), or the shared.h at projects\\irrlicht game engine\\irrlicht game engine\\shared.h does not include Irrlicht.h.

Like I said, It looks like you've snipped large portions of the preprocessed output. If you haven't, then you've got some problems.

If you're still having trouble figuring this out, upload your code and post send me a PM with a link.

Travis
tomtetlaw
Posts: 110
Joined: Sun Jul 05, 2009 9:57 am

Post by tomtetlaw »

ok i fixed everything, and i encapsulated all the other classes into the api namespace. but now i get all these linker errors:

Code: Select all

------ Build started: Project: IrrlichtGameEngine, Configuration: Debug Win32 ------
Compiling...
main.cpp
Linking...
C_BaseZombie.obj : error LNK2005: "class irr::video::IVideoDriver * api::driver" (?driver@api@@3PAVIVideoDriver@video@irr@@A) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "class irr::scene::ISceneManager * api::smgr" (?smgr@api@@3PAVISceneManager@scene@irr@@A) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "unsigned int api::uLastTime" (?uLastTime@api@@3IA) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "unsigned int api::uElapsedTime" (?uElapsedTime@api@@3IA) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "class irr::ITimer * api::pTimer" (?pTimer@api@@3PAVITimer@irr@@A) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "unsigned int api::uCurrentTime" (?uCurrentTime@api@@3IA) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "class irrklang::ISoundEngine * api::engine" (?engine@api@@3PAVISoundEngine@irrklang@@A) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "class irr::scene::ICameraSceneNode * api::camera" (?camera@api@@3PAVICameraSceneNode@scene@irr@@A) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "class irr::IrrlichtDevice * api::device" (?device@api@@3PAVIrrlichtDevice@irr@@A) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "class irr::gui::IGUIEnvironment * api::guienv" (?guienv@api@@3PAVIGUIEnvironment@gui@irr@@A) already defined in C_BaseRenderable.obj
C_BaseZombie.obj : error LNK2005: "struct irr::SIrrlichtCreationParameters api::params" (?params@api@@3USIrrlichtCreationParameters@irr@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "class irr::video::IVideoDriver * api::driver" (?driver@api@@3PAVIVideoDriver@video@irr@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "class irr::scene::ISceneManager * api::smgr" (?smgr@api@@3PAVISceneManager@scene@irr@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "unsigned int api::uLastTime" (?uLastTime@api@@3IA) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "unsigned int api::uElapsedTime" (?uElapsedTime@api@@3IA) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "class irr::ITimer * api::pTimer" (?pTimer@api@@3PAVITimer@irr@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "unsigned int api::uCurrentTime" (?uCurrentTime@api@@3IA) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "class irrklang::ISoundEngine * api::engine" (?engine@api@@3PAVISoundEngine@irrklang@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "class irr::scene::ICameraSceneNode * api::camera" (?camera@api@@3PAVICameraSceneNode@scene@irr@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "class irr::IrrlichtDevice * api::device" (?device@api@@3PAVIrrlichtDevice@irr@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "class irr::gui::IGUIEnvironment * api::guienv" (?guienv@api@@3PAVIGUIEnvironment@gui@irr@@A) already defined in C_BaseRenderable.obj
main.obj : error LNK2005: "struct irr::SIrrlichtCreationParameters api::params" (?params@api@@3USIrrlichtCreationParameters@irr@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "class irr::video::IVideoDriver * api::driver" (?driver@api@@3PAVIVideoDriver@video@irr@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "class irr::scene::ISceneManager * api::smgr" (?smgr@api@@3PAVISceneManager@scene@irr@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "unsigned int api::uLastTime" (?uLastTime@api@@3IA) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "unsigned int api::uElapsedTime" (?uElapsedTime@api@@3IA) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "class irr::ITimer * api::pTimer" (?pTimer@api@@3PAVITimer@irr@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "unsigned int api::uCurrentTime" (?uCurrentTime@api@@3IA) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "class irrklang::ISoundEngine * api::engine" (?engine@api@@3PAVISoundEngine@irrklang@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "class irr::scene::ICameraSceneNode * api::camera" (?camera@api@@3PAVICameraSceneNode@scene@irr@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "class irr::IrrlichtDevice * api::device" (?device@api@@3PAVIrrlichtDevice@irr@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "class irr::gui::IGUIEnvironment * api::guienv" (?guienv@api@@3PAVIGUIEnvironment@gui@irr@@A) already defined in C_BaseRenderable.obj
shared.obj : error LNK2005: "struct irr::SIrrlichtCreationParameters api::params" (?params@api@@3USIrrlichtCreationParameters@irr@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "class irr::video::IVideoDriver * api::driver" (?driver@api@@3PAVIVideoDriver@video@irr@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "class irr::scene::ISceneManager * api::smgr" (?smgr@api@@3PAVISceneManager@scene@irr@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "unsigned int api::uLastTime" (?uLastTime@api@@3IA) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "unsigned int api::uElapsedTime" (?uElapsedTime@api@@3IA) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "class irr::ITimer * api::pTimer" (?pTimer@api@@3PAVITimer@irr@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "unsigned int api::uCurrentTime" (?uCurrentTime@api@@3IA) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "class irrklang::ISoundEngine * api::engine" (?engine@api@@3PAVISoundEngine@irrklang@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "class irr::scene::ICameraSceneNode * api::camera" (?camera@api@@3PAVICameraSceneNode@scene@irr@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "class irr::IrrlichtDevice * api::device" (?device@api@@3PAVIrrlichtDevice@irr@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "class irr::gui::IGUIEnvironment * api::guienv" (?guienv@api@@3PAVIGUIEnvironment@gui@irr@@A) already defined in C_BaseRenderable.obj
C_BaseEntity.obj : error LNK2005: "struct irr::SIrrlichtCreationParameters api::params" (?params@api@@3USIrrlichtCreationParameters@irr@@A) already defined in C_BaseRenderable.obj
C:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\Irrlicht Game Engine\Debug\IrrlichtGameEngine.exe : fatal error LNK1169: one or more multiply defined symbols found
Build log was saved at "file://c:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\Irrlicht Game Engine\Irrlicht Game Engine\Debug\BuildLog.htm"
IrrlichtGameEngine - 45 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
i hardly know how to fix these linker errors, since i have include gaurds in all the .h file. any help would be appreciated.
#1 Most Common Error:
Reality Error: Object behind keyboard cannot program.
Post Reply