problems linking the Newton SDK 2.xx

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

problems linking the Newton SDK 2.xx

Postby radubolovan » Sat Jan 08, 2011 1:12 pm

Hello!
I've been downloading about all Newton SDK 2.xx and I am trying to set it up within a project in MS Visual Studio.
So compilation works fine, but does not link.

Here is how I tried:
#pragma comment( lib, "../Libs/Newton/sdk/x32/lib_vs9_md/dMath_d.lib" )
#pragma comment( lib, "../Libs/Newton/sdk/x32/lib_vs9_md/dContainers_d.lib" )
#pragma comment( lib, "../Libs/Newton/sdk/x32/lib_vs9_md/dJointLibrary_d.lib" )
#pragma comment( lib, "../Libs/Newton/sdk/x32/lib_vs9_md/newton_d.lib" )

and here are my error (I pasted only e few, but there are planty):
1>enNewtonWorld.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetSurfaceThickness referenced in function "public: ...
1>enNewtonWorld.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetCollisionCallback referenced in function "public: ...
1>enNewtonWorld.obj : error LNK2019: unresolved external symbol __imp__NewtonMaterialSetDefaultFriction referenced in function "public: ...

I also tried with libs in lib_vs9_mt

So ... can someone please tell me what I did wrong?

Thanks!
radubolovan
 

Re: problems linking the Newton SDK 2.xx

Postby Julio Jerez » Sat Jan 08, 2011 1:58 pm

yopu are trying linking a dll to a static library you need to set the correct preproccesor define: _NEWTON_USE_LIB
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: problems linking the Newton SDK 2.xx

Postby Brendon77 » Sat Jul 20, 2013 12:09 am

Maybe this problem is current version, you should try latest version.
Brendon77
 
Posts: 2
Joined: Mon Jul 15, 2013 6:51 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest