Error building

shane

13-05-2009 22:10:10

I have used bullet 2.74, 2.63, and the SVN like the readme.txt says to do, but I keep getting a static_cast error everytime that says the following (MSVC):
Error 2 error C2440: 'static_cast' : cannot convert from 'btTypedConstraint *' to 'btRaycastVehicle *' ...\OgreBulletDynamicsRaycastVehicle.h 97


This is the offending line of code in the RaycastVehicle class:
{return static_cast<btRaycastVehicle *> (mConstraint);};

Sorry if I missed something on the forum, but what do I need to do here?

Thanks.

shane

13-05-2009 22:35:33

Oh, I see a patch for it now, so that might be it, sorry. :oops:

nilphilus

19-06-2009 13:08:56

Hi, i have that same problem. Could you say what are you done with that?

1>..\..\src\Constraints\OgreBulletDynamicsRaycastVehicle.cpp(83) : error C2440: '=' : cannot convert from 'btRaycastVehicle *' to 'btTypedConstraint *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


that i change to reinrepret_cast. it's good solution for that?

1>..\..\src\Constraints\OgreBulletDynamicsRaycastVehicle.cpp(109) : error C2440: 'static_cast' : cannot convert from 'btTypedConstraint *' to 'btRaycastVehicle *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\src\Constraints\OgreBulletDynamicsRaycastVehicle.cpp(143) : error C2440: 'static_cast' : cannot convert from 'btTypedConstraint *' to 'btRaycastVehicle *'

shane

20-07-2009 17:19:27

I can't remember what I did but I think I simply applied the patch, and all was good. Let me know if that doesn't work.