Problem with an RTSCamera and Irrlicht 1.4

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.
Post Reply
renegadeandy
Posts: 122
Joined: Sun May 25, 2008 11:14 pm
Location: Scotland
Contact:

Problem with an RTSCamera and Irrlicht 1.4

Post by renegadeandy »

Hi.

I have never used Irrlicht before today - and am fairly new to CPP also.

Anyway, was browsing the Code Snippet section and found a Camera which is perfect for my game. Followed the instructions :

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=17066

However it gives this error:

Code: Select all


main.cpp:67: error: cannot allocate an object of type `RTSCamera' 

main.cpp:67: error: because the following virtual functions are abstract: 

C:/irrlicht-1.4/irrlicht-1.4/include/ICameraSceneNode.h:47: error: virtual const irr::core::matrix4& irr::scene::ICameraSceneNode::getProjectionMatrix() const 

C:/irrlicht-1.4/irrlicht-1.4/include/ICameraSceneNode.h:51: error: virtual const irr::core::matrix4& irr::scene::ICameraSceneNode::getViewMatrix() const 

C:/irrlicht-1.4/irrlicht-1.4/include/ICameraSceneNode.h:79: error: virtual irr::f32 irr::scene::ICameraSceneNode::getNearValue() const 

C:/irrlicht-1.4/irrlicht-1.4/include/ICameraSceneNode.h:83: error: virtual irr::f32 irr::scene::ICameraSceneNode::getFarValue() const 

C:/irrlicht-1.4/irrlicht-1.4/include/ICameraSceneNode.h:87: error: virtual irr::f32 irr::scene::ICameraSceneNode::getAspectRatio() const 

C:/irrlicht-1.4/irrlicht-1.4/include/ICameraSceneNode.h:91: error: virtual irr::f32 irr::scene::ICameraSceneNode::getFOV() const 

C:/irrlicht-1.4/irrlicht-1.4/include/ICameraSceneNode.h:120: error: virtual bool irr::scene::ICameraSceneNode::isInputReceiverEnabled() const 

Anyhelp as to why this is happeneing would be brilliant.

Thanks

Andy
renegadeandy
Posts: 122
Joined: Sun May 25, 2008 11:14 pm
Location: Scotland
Contact:

Post by renegadeandy »

fixed!
marcos
Posts: 16
Joined: Fri May 16, 2008 5:38 pm

Post by marcos »

I'm sure you get some other error messages. If so, please post them also. The main.cpp code would be also very appreciated.

With the information you provide us I would say that the reason is there is some undefined type due to a missing "include" or wrong project include paths, so you get that side effect error.

BR

PS: By the way. If you are new to CPP I would recommend you reading this;
http://public.research.att.com/~bs/3rd.html
Post Reply