Errors when building with ogrenewt

danharibo

04-04-2006 19:13:35

when i try to create a world with ogrenewt i get these errors:
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonUpdate
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonGetTimeStep
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonSetWorldSize
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonDestroy
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonBodyGetUserData
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonWorldGetUserData
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonBodyGetWorld
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonMaterialGetDefaultGroupID
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonWorldSetUserData
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonCreate
OgreNewt_Main.lib(OgreNewt_World.obj) : error LNK2001: unresolved external symbol __imp__NewtonSetBodyLeaveWorldEvent
OgreNewt_Main.lib(OgreNewt_MaterialID.obj) : error LNK2001: unresolved external symbol __imp__NewtonMaterialCreateGroupID

why is it doing thius? i have just re-built ogrenewt and it still wont work

walaber

04-04-2006 22:37:29

the linker cannot find the Newton library. have you downloaded the Newton SDK? if so, make sure the linker settings are pointing to the directory NewtonSDK/sdk/dll/.

danharibo

05-04-2006 16:54:37

ok, i will link to the neton/sdk dir, must have forgoten to addit :oops:

danharibo

05-04-2006 17:01:37

no, that doen'nt fix, what dirs exactly and libs

walaber

05-04-2006 17:56:29

NewtonSDK/sdk/dll

and in the "input" section of the linker add "newton.lib"

danharibo

05-04-2006 17:59:29

oops wronk folder

danharibo

05-04-2006 18:03:44

yay world works