Problem with function NewtonWorldGetVersion

blackmoore

06-03-2011 21:15:09

I'm trying to compile OgreNewt but I have few errors, one of them is: 'NewtonWorldGetVersion' : function does not take 1 arguments
Whats wrong? I checked the definition, and there is one argument. Do you know why these errors occur?

'NewtonTreeCollisionSetUserRayCastCallback' : cannot convert parameter 2 from 'float (__cdecl *)(float,float *,int,void *)' to 'NewtonCollisionTreeRayCastCallback'
'NewtonCreateBody' : function does not take 2 arguments

Ogre 1.7.3
Newton 2.22 (i tried 2.0, 2.10, 2.28, 2.30)

1>------ Build started: Project: new, Configuration: Release Win32 ------
1>Build started 3/6/2011 22:09:35.
1>InitializeBuildStatus:
1> Touching "obj/release\new.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> OgreNewt_BasicFrameListener.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1>src\OgreNewt_BasicFrameListener.cpp(28): warning C4244: 'argument' : conversion from 'int' to 'Ogre::Real', possible loss of data
1> OgreNewt_BasicJoints.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_Body.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1>src\OgreNewt_Body.cpp(37): error C2660: 'NewtonCreateBody' : function does not take 2 arguments
1> OgreNewt_BodyInAABBIterator.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_Collision.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_CollisionPrimitives.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1>src\OgreNewt_CollisionPrimitives.cpp(535): error C2664: 'NewtonTreeCollisionSetUserRayCastCallback' : cannot convert parameter 2 from 'float (__cdecl *)(float,float *,int,void *)' to 'NewtonCollisionTreeRayCastCallback'
1> None of the functions with this name in scope match the target type
1>src\OgreNewt_CollisionPrimitives.cpp(762): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
1>src\OgreNewt_CollisionPrimitives.cpp(763): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
1>src\OgreNewt_CollisionPrimitives.cpp(764): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
1>src\OgreNewt_CollisionPrimitives.cpp(770): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
1> OgreNewt_CollisionSerializer.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_ContactJoint.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_ConvexCast.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_Debugger.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_Joint.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_MaterialID.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_MaterialPair.cpp
1>d:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_PlayerController.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_RayCast.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_RayCastVehicle.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_Tools.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> OgreNewt_World.cpp
1>D:\ogrenewt\branches\ogrenewt\new\new\inc\OgreNewt_World.h(274): error C2660: 'NewtonWorldGetVersion' : function does not take 1 arguments
1> Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:03.04
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Lax

23-03-2011 13:13:44

You are using an older version of OgreNewt, there are some changes in the new newton version, that are not compatible with the current ogrenewt version.