However, when i try and run some of the examples in the newton sdk I get a file not found error on "stdafx.h"
If i add this file form the download on the link[above] it gives even more errors - am i missing something?
/////
-i found a stdafx.h file in:
NewtonSDK\samples\toolBox , so i include it in my project
- i get a warning about a redeinition of stdlib.h in 2003tookit/include/
- i comment out exit in stdlib.h compile
- i get error about glut32.lib not found
- i include NewtonSDK\samples\gl into my linker
- both files form the tutorial compile now, and thin i try to rebuild...
- now i get a slew of errors :
Code: Select all
Switching to target: default
tutorial.cpp
Material.cpp
Linking console executable: irrlicht.exe
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonDestroy referenced in function "void __cdecl CleanUp(void)" (?CleanUp@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodyGetUserData referenced in function "void __cdecl PhysicsBodyDestructor(struct NewtonBody const *)" (?PhysicsBodyDestructor@@YAXPBUNewtonBody@@@Z)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetForce referenced in function "void __cdecl PhysicsApplyForceAndTorque(struct NewtonBody const *)" (?PhysicsApplyForceAndTorque@@YAXPBUNewtonBody@@@Z)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodyGetMassMatrix referenced in function "void __cdecl PhysicsApplyForceAndTorque(struct NewtonBody const *)" (?PhysicsApplyForceAndTorque@@YAXPBUNewtonBody@@@Z)
Material.obj : error LNK2001: unresolved external symbol __imp__NewtonBodyGetMassMatrix
tutorial.obj : error LNK2019: unresolved external symbol "void __cdecl GetCursorPos(struct MOUSE_POINT &)" (?GetCursorPos@@YAXAAUMOUSE_POINT@@@Z) referenced in function "void __cdecl Keyboard(void)" (?Keyboard@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "int __cdecl dGetKeyState(int)" (?dGetKeyState@@YAHH@Z) referenced in function "void __cdecl Keyboard(void)" (?Keyboard@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetTorque referenced in function "void __cdecl BallCharacterApplyForceAndTorque(struct NewtonBody const *)" (?BallCharacterApplyForceAndTorque@@YAXPBUNewtonBody@@@Z)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodyGetOmega referenced in function "void __cdecl BallCharacterApplyForceAndTorque(struct NewtonBody const *)" (?BallCharacterApplyForceAndTorque@@YAXPBUNewtonBody@@@Z)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodyGetVelocity referenced in function "void __cdecl BallCharacterApplyForceAndTorque(struct NewtonBody const *)" (?BallCharacterApplyForceAndTorque@@YAXPBUNewtonBody@@@Z)
Material.obj : error LNK2001: unresolved external symbol __imp__NewtonBodyGetVelocity
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodyGetForce referenced in function "void __cdecl BallCharacterApplyForceAndTorque(struct NewtonBody const *)" (?BallCharacterApplyForceAndTorque@@YAXPBUNewtonBody@@@Z)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonReleaseCollision referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetMatrix referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetMassMatrix referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetForceAndTorqueCallback referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetTransformCallback referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetDestructorCallback referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetUserData referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetMaterialGroupID referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonWorldUnfreezeBody referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetAutoFreeze referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonCreateBody referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "public: __thiscall SpherePrimitive::SpherePrimitive(class dMatrix const &,float,float,float,int)" (??0SpherePrimitive@@QAE@ABVdMatrix@@MMMH@Z) referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonCreateSphere referenced in function "void __cdecl AddBallCharacter(void)" (?AddBallCharacter@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl dRand(void)" (?dRand@@YAIXZ) referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "public: __thiscall BoxPrimitive::BoxPrimitive(class dMatrix const &,class dVector const &,int)" (??0BoxPrimitive@@QAE@ABVdMatrix@@ABVdVector@@H@Z) referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonCreateBox referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "public: __thiscall LevelPrimitive::LevelPrimitive(char const *,struct NewtonWorld *,void (__cdecl*)(struct NewtonBody const *,struct NewtonBody const *,float const *,int,int,int const *))" (??0LevelPrimitive@@QAE@PBDPAUNewtonWorld@@P6AXPBUNewtonBody@@2PBMHHPBH@Z@Z) referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonCreate referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "void __cdecl Print(class dVector const &,float,float,char const *,...)" (?Print@@YAXABVdVector@@MMPBDZZ) referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "public: static class GraphicManager & __cdecl GraphicManager::GetManager(void)" (?GetManager@GraphicManager@@SAAAV1@XZ) referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "void __cdecl SetCamera(class dVector const &,class dVector const &)" (?SetCamera@@YAXABVdVector@@0@Z) referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol __imp__NewtonUpdate referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "public: float __thiscall CHiResTimer::GetElapsedSeconds(void)" (?GetElapsedSeconds@CHiResTimer@@QAEMXZ) referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
tutorial.obj : error LNK2019: unresolved external symbol "void __cdecl InitOpenGl(int,char * *,char const *,void (__cdecl*)(void))" (?InitOpenGl@@YAXHPAPADPBDP6AXXZ@Z) referenced in function _main
tutorial.obj : error LNK2019: unresolved external symbol "public: __thiscall CHiResTimer::CHiResTimer(void)" (??0CHiResTimer@@QAE@XZ) referenced in function _$E1
tutorial.obj : error LNK2019: unresolved external symbol "public: __thiscall CHiResTimer::~CHiResTimer(void)" (??1CHiResTimer@@QAE@XZ) referenced in function _$E2
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialGetMaterialPairUserData referenced in function "int __cdecl GenericContactBegin(struct NewtonMaterial const *,struct NewtonBody const *,struct NewtonBody const *)" (?GenericContactBegin@@YAHPBUNewtonMaterial@@PBUNewtonBody@@1@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialGetContactTangentSpeed referenced in function "int __cdecl GenericContactProcess(struct NewtonMaterial const *,struct NewtonContact const *)" (?GenericContactProcess@@YAHPBUNewtonMaterial@@PBUNewtonContact@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialGetContactPositionAndNormal referenced in function "int __cdecl GenericContactProcess(struct NewtonMaterial const *,struct NewtonContact const *)" (?GenericContactProcess@@YAHPBUNewtonMaterial@@PBUNewtonContact@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialGetContactNormalSpeed referenced in function "int __cdecl GenericContactProcess(struct NewtonMaterial const *,struct NewtonContact const *)" (?GenericContactProcess@@YAHPBUNewtonMaterial@@PBUNewtonContact@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialContactRotateTangentDirections referenced in function "int __cdecl CharacterContactProcess(struct NewtonMaterial const *,struct NewtonContact const *)" (?CharacterContactProcess@@YAHPBUNewtonMaterial@@PBUNewtonContact@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialCreateGroupID referenced in function "void __cdecl SetupMaterials(struct NewtonWorld *)" (?SetupMaterials@@YAXPAUNewtonWorld@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetCollisionCallback referenced in function "void __cdecl SetupMaterials(struct NewtonWorld *)" (?SetupMaterials@@YAXPAUNewtonWorld@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetDefaultFriction referenced in function "void __cdecl SetupMaterials(struct NewtonWorld *)" (?SetupMaterials@@YAXPAUNewtonWorld@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetDefaultCollidable referenced in function "void __cdecl SetupMaterials(struct NewtonWorld *)" (?SetupMaterials@@YAXPAUNewtonWorld@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetDefaultElasticity referenced in function "void __cdecl SetupMaterials(struct NewtonWorld *)" (?SetupMaterials@@YAXPAUNewtonWorld@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetDefaultSoftness referenced in function "void __cdecl SetupMaterials(struct NewtonWorld *)" (?SetupMaterials@@YAXPAUNewtonWorld@@@Z)
Material.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialGetDefaultGroupID referenced in function "void __cdecl SetupMaterials(struct NewtonWorld *)" (?SetupMaterials@@YAXPAUNewtonWorld@@@Z)
Process terminated with status 1 (0 minutes, 1 seconds)
52 errors, 0 warnings