Problem compiling vehicle demo

bantza

11-07-2006 22:00:33

When I try to compile vehicle demo I get this:
OgreNewtonApplication.cpp: In member function `virtual void OgreNewtonApplication::createScene()':
OgreNewtonApplication.cpp:63: error: no matching function for call to `SimpleVehicle::SimpleVehicle(Ogre::SceneManager*&, OgreNewt::World*&, Ogre::Vector3, Ogre::Quaternion)'
.\SimpleVehicle.h:15: note: candidates are: SimpleVehicle::SimpleVehicle(const SimpleVehicle&)
.\SimpleVehicle.h:35: note: SimpleVehicle::SimpleVehicle(Ogre::SceneManager*, OgreNewt::World*, Ogre::Vector3&, Ogre::Quaternion&)


I managed to get couple of other demos to run already.

kartweel

18-11-2006 03:54:09

Hey, did you ever get this working? I am having the same problem on my linux machine (gentoo gcc-4.1.1), although the same code works on my windows machine (vs2003).

wacko

22-05-2007 12:48:21

Hi,

Has anybody figured out how to get this working? I'm getting the exact same error.

I'm currently using CodeBlocks (nightly build) on Windows with the MingW Compiler.

Ogre is v1.4.0 Final [Eihort] (25 March 2007)
MingW gcc version is 3.4.5 (mingw special)
I got the OgreAddons 2 nights before so OgreNewt is new.

I can compile Demo1_TheBasics and Demo02_Joints but not Simple_Vehicle or any of the others.
All of them end up with a similar "no matching function for call " error for the constructors.

Any help will be appreciated.

walaber

22-05-2007 18:42:18

I will have a look at the demos this week... perhaps something has gnoe wrong lately. To be honest I haven't looked at them in a while.

ogrekekz

27-08-2008 12:47:43

was this error fixed? i have the same problem now.

ogrekekz

30-08-2008 16:41:23

there's a simple solution to get this to work with g++:

just instead of
mCar = new SimpleVehicle( mSceneMgr, m_World, Ogre::Vector3(0,-0.5,0),
Ogre::Quaternion(Ogre::Quaternion::IDENTITY) );

use
Ogre::Vector3 v(0,-0.5,0);
Ogre::Quaternion q(Ogre::Quaternion::IDENTITY);

mCar = new SimpleVehicle( mSceneMgr, m_World, v, q);