Problem with setting up Newton!!

HansWurst

01-03-2006 12:08:34

Hi,

I have a problem with Newton...

I can't set it up :-(

Here my error message:

Project : OGRE_Sample
Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : D:\Spiele\Rollenspiel\NewtonResolution\
--------------------------------------------------------------------------------
Switching to target: Release
Linking executable: OGRE sample.exe
main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall RenderPrimitive::~RenderPrimitive(void)" (??1RenderPrimitive@@UAE@XZ) referenced in function "public: virtual __thiscall BoxPrimitive::~BoxPrimitive(void)" (??1BoxPrimitive@@UAE@XZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonDestroy referenced in function "void __cdecl CleanUp(void)" (?CleanUp@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetOmega referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetMatrix referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonBodySetMassMatrix referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonReleaseCollision referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonCreateBody referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonCreateBox referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonCreate referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol "public: void __thiscall RenderPrimitive::SetTexture(int)" (?SetTexture@RenderPrimitive@@QAEXH@Z) referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
main.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)
main.obj : error LNK2019: unresolved external symbol "int __cdecl dGetKeyState(int)" (?dGetKeyState@@YAHH@Z) referenced in function "void __cdecl Keyboard(void)" (?Keyboard@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall BoxPrimitive::Render(void)const " (?Render@BoxPrimitive@@UBEXXZ) referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonBodyGetMatrix referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
main.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)
main.obj : error LNK2019: unresolved external symbol __imp__NewtonUpdate referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol "public: float __thiscall CHiResTimer::GetElapsedSeconds(void)" (?GetElapsedSeconds@CHiResTimer@@QAEMXZ) referenced in function "void __cdecl DrawScene(void)" (?DrawScene@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol "void __cdecl InitOpenGl(int,char * *,char const *,void (__cdecl*)(void))" (?InitOpenGl@@YAXHPAPADPBDP6AXXZ@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "public: __thiscall CHiResTimer::CHiResTimer(void)" (??0CHiResTimer@@QAE@XZ) referenced in function _$E1
main.obj : error LNK2019: unresolved external symbol "public: __thiscall BoxPrimitive::BoxPrimitive(class dSceneNode *,class dMatrix const &,class dVector const &,int)" (??0BoxPrimitive@@QAE@PAVdSceneNode@@ABVdMatrix@@ABVdVector@@H@Z) referenced in function _$E4
main.obj : error LNK2019: unresolved external symbol "public: __thiscall CHiResTimer::~CHiResTimer(void)" (??1CHiResTimer@@QAE@XZ) referenced in function _$E2
LIBC.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
OGRE sample.exe : fatal error LNK1120: 22 unresolved externals
Process terminated with status 1 (0 minutes, 0 seconds)

I think I realy have all libs and dlls included...

plz help ...

HansWurst

walaber

01-03-2006 16:42:09

well first it looks like you are not linking to Newton itself. you need to link to the newton.lib file in the directory of your choice. for linking to the DLL version, that would be (newtonSDKdir)\sdk\dll.

what are you compiling here? it looks like you are using some of the datatypes from the Newton SDK examples, which yuo don't need if you are using Ogre (and OgreNewt)... because they use the Ogre datatypes...

HansWurst

01-03-2006 18:28:22

Yes, I tried to compile an example from Newton.
When I only try to create a new World in my own applications,
I also get one error looking like all the others her -.-

Sry, but I'm really sure that I have connected to the libs in sdk/dll ...

Where could also be a mistake?!?

plz help...

HansWurst

walaber

01-03-2006 19:30:00

do you have "newton.lib" included in the "input" section of the linker settings? probably not ;)

HansWurst

01-03-2006 20:09:55

Yes Newton.lib (now) is added :-P
But there's the same error :-(

what have I to do to make it running ... ?

HansWurst

abhinavxrai

12-03-2006 09:45:42

Well I am having a similar ... but not the same problem.

I am able to compile everything with absolutely no problem at all. However, when I try to run any of the demos I get the folowing MessageBox message:

The Application has failed to start because Newton.dll was not found. Re-installing the application may fix this problem

What needs to be the directory where the newton.dll file should be stored?

I'm using VS7.1 and I just switched from VS6.0... so I dont know where can I find the option to include directories, libraries.. etc.

in 6.0 it was Tools->Options->Directories
how about in 7.1?

Thank for your help!

walaber

12-03-2006 18:18:33

you need to copy the newton.dll file from newtonSDK/sdk/dll to the directory where your program .exe sits!

abhinavxrai

13-03-2006 06:17:32

w00t w00t... OgreNewt demos working perfectly fine and they look awesome! Thanks for all your help guys and now time to figure out collision detection! Suggestions would be welcome!