mharezlak96
05-10-2010 19:40:59
I compiling tutorial from this site: http://www.newtondynamics.com/wiki/inde ... ners_guide
I download project file and I add 3 files (main.cpp, OgreNewtApplication.h, OgreNewtApplication.cpp) to my empty project in VS C++ 2008. I add required files in project setting.
Errors:
What is bad? Where i find working tutorial?
I download project file and I add 3 files (main.cpp, OgreNewtApplication.h, OgreNewtApplication.cpp) to my empty project in VS C++ 2008. I add required files in project setting.
Errors:
1>c:\users\x\documents\visual studio 2008\projects\lensnewton2\.\ogrenewtapplication.h(13) : error C2039: 'BasicFrameListener' : is not a member of 'OgreNewt'
1>c:\users\x\documents\visual studio 2008\projects\lensnewton2\.\ogrenewtapplication.h(13) : error C2143: syntax error : missing ';' before '*'
1>c:\users\x\documents\visual studio 2008\projects\lensnewton2\.\ogrenewtapplication.h(13) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\x\documents\visual studio 2008\projects\lensnewton2\.\ogrenewtapplication.h(13) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>..\OgreNewtApplication.cpp(26) : error C2661: 'OgreNewt::CollisionPrimitives::Box::Box' : no overloaded function takes 2 arguments
1>..\OgreNewtApplication.cpp(27) : error C2664: 'OgreNewt::Body::Body(const OgreNewt::World *,const OgreNewt::CollisionPtr &,int)' : cannot convert parameter 2 from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr &'
1> Reason: cannot convert from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr'
1> Constructor for class 'boost::shared_ptr<T>' is declared 'explicit'
1> with
1> [
1> T=OgreNewt::Collision
1> ]
1>..\OgreNewtApplication.cpp(29) : error C2039: 'attachToNode' : is not a member of 'OgreNewt::Body'
1> d:\dx\graszkola\ogrenewt\inc\OgreNewt_Body.h(38) : see declaration of 'OgreNewt::Body'
1>..\OgreNewtApplication.cpp(36) : warning C4305: 'argument' : truncation from 'double' to 'const Ogre::Real'
1>..\OgreNewtApplication.cpp(43) : error C2661: 'OgreNewt::CollisionPrimitives::Cylinder::Cylinder' : no overloaded function takes 3 arguments
1>..\OgreNewtApplication.cpp(44) : error C2664: 'OgreNewt::Body::Body(const OgreNewt::World *,const OgreNewt::CollisionPtr &,int)' : cannot convert parameter 2 from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr &'
1> Reason: cannot convert from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr'
1> Constructor for class 'boost::shared_ptr<T>' is declared 'explicit'
1> with
1> [
1> T=OgreNewt::Collision
1> ]
1>..\OgreNewtApplication.cpp(45) : error C2039: 'attachToNode' : is not a member of 'OgreNewt::Body'
1> d:\dx\graszkola\ogrenewt\inc\OgreNewt_Body.h(38) : see declaration of 'OgreNewt::Body'
1>..\OgreNewtApplication.cpp(52) : error C3083: 'MomentOfInertia': the symbol to the left of a '::' must be a type
1>..\OgreNewtApplication.cpp(52) : error C2039: 'CalcCylinderSolid' : is not a member of 'OgreNewt'
1>..\OgreNewtApplication.cpp(52) : error C3861: 'CalcCylinderSolid': identifier not found
1>..\OgreNewtApplication.cpp(60) : warning C4305: 'argument' : truncation from 'double' to 'const Ogre::Real'
1>..\OgreNewtApplication.cpp(60) : warning C4305: 'argument' : truncation from 'double' to 'const Ogre::Real'
1>..\OgreNewtApplication.cpp(67) : error C2661: 'OgreNewt::CollisionPrimitives::Cone::Cone' : no overloaded function takes 3 arguments
1>..\OgreNewtApplication.cpp(68) : error C2664: 'OgreNewt::Body::Body(const OgreNewt::World *,const OgreNewt::CollisionPtr &,int)' : cannot convert parameter 2 from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr &'
1> Reason: cannot convert from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr'
1> Constructor for class 'boost::shared_ptr<T>' is declared 'explicit'
1> with
1> [
1> T=OgreNewt::Collision
1> ]
1>..\OgreNewtApplication.cpp(69) : error C2039: 'attachToNode' : is not a member of 'OgreNewt::Body'
1> d:\dx\graszkola\ogrenewt\inc\OgreNewt_Body.h(38) : see declaration of 'OgreNewt::Body'
1>..\OgreNewtApplication.cpp(76) : error C3083: 'MomentOfInertia': the symbol to the left of a '::' must be a type
1>..\OgreNewtApplication.cpp(76) : error C2039: 'CalcCylinderSolid' : is not a member of 'OgreNewt'
1>..\OgreNewtApplication.cpp(76) : error C3861: 'CalcCylinderSolid': identifier not found
1>..\OgreNewtApplication.cpp(90) : error C2661: 'OgreNewt::CollisionPrimitives::Box::Box' : no overloaded function takes 2 arguments
1>..\OgreNewtApplication.cpp(91) : error C2664: 'OgreNewt::Body::Body(const OgreNewt::World *,const OgreNewt::CollisionPtr &,int)' : cannot convert parameter 2 from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr &'
1> Reason: cannot convert from 'OgreNewt::Collision *' to 'const OgreNewt::CollisionPtr'
1> Constructor for class 'boost::shared_ptr<T>' is declared 'explicit'
1> with
1> [
1> T=OgreNewt::Collision
1> ]
1>..\OgreNewtApplication.cpp(92) : error C2039: 'attachToNode' : is not a member of 'OgreNewt::Body'
1> d:\dx\graszkola\ogrenewt\inc\OgreNewt_Body.h(38) : see declaration of 'OgreNewt::Body'
1>..\OgreNewtApplication.cpp(99) : error C3083: 'MomentOfInertia': the symbol to the left of a '::' must be a type
1>..\OgreNewtApplication.cpp(99) : error C2039: 'CalcBoxSolid' : is not a member of 'OgreNewt'
1>..\OgreNewtApplication.cpp(99) : error C3861: 'CalcBoxSolid': identifier not found
1>..\OgreNewtApplication.cpp(122) : error C2065: 'mOgreNewtListener' : undeclared identifier
1>..\OgreNewtApplication.cpp(122) : error C2039: 'BasicFrameListener' : is not a member of 'OgreNewt'
1>..\OgreNewtApplication.cpp(122) : error C2061: syntax error : identifier 'BasicFrameListener'
1>..\OgreNewtApplication.cpp(123) : error C2065: 'mOgreNewtListener' : undeclared identifier
What is bad? Where i find working tutorial?