JointLibary MD linking

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

JointLibary MD linking

Postby FSA » Wed Aug 07, 2013 8:27 pm

Hi! All my projects are linking dynamic against the runtime (/MD). So Newton links static against the runtime (/MT) (in release build). The problem is that I can not mix these two things. When I try to build Newton with /MD set then I get heap corrupts everywhere in my project. When I don't link the dJointLibary.lib build with /MD then everything works fine. The strange thing is in debug build everything works fine!
Have you a solution for that? I promise you it's not a bug in my project. I've tested it the last two days :D
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: JointLibary MD linking

Postby Julio Jerez » Wed Aug 07, 2013 8:37 pm

the stastic libraries have /md and /mt
the dynamics dll only have /mt because dynamics it doe sno matter i fthey use /mt or /md

are you linking newton statically ?
the configuration name are debug_mdd and release m_d
but I only made then for Visual studio 8,
I do not think IO have the for VS 2010.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: JointLibary MD linking

Postby FSA » Wed Aug 07, 2013 8:40 pm

I link dJointlibary, dMath, dContainer statically
and newton dynamically.
I use VS 2012
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: JointLibary MD linking

Postby Julio Jerez » Wed Aug 07, 2013 8:49 pm

Oh not that is not going to work,
if you link newton statically, yo ualso nee to link the rest of all te hlibraries statically.
if you link newton dynamicsly, the you need to link the joint library dynamically.

this weekend I will add a new CMake project that people can use to make their own configurations.
keep up with different projects configations is too much work for very little payoff.

notic ethat of these dJointlibary, dMath, dContainer statically
you only need Only dJointlibary and dMath
and of thode only dJointlibary is a dll

you just need to set you configuation to use dJointlibary dll and Netwon DLL and it shopuld be fine.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: JointLibary MD linking

Postby FSA » Wed Aug 07, 2013 9:04 pm

OK now I've created the build.sln in release not releaseDLL anymore.
I link four lib's.
dJointLibary.lib, dMath.lib, dContainers.lib, newton.lib
I didn't get any DLL's anymore.
But now I get unresolved external symbols :(

unresolved external symbol translated to german is "Nicht aufgelöstes externes Symbol"
Code: Select all
Newton_BasicPlayerCtrl.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSyncThreadJobs".
1>Newton_BasicPlayerCtrl.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDispachThreadJob".
1>Newton_BasicPlayerCtrl.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CustomPlayerController::SetPlayerVelocity(float,float,float,float,class dVector const &,float)" (__imp_?SetPlayerVelocity@CustomPlayerController@@QAEXMMMMABVdVector@@M@Z)".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSetMemorySystem".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonCreate".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSetSolverModel".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSetThreadsCount".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDestroyAllBodies".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDestroy".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonUpdate".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodyGetMatrix".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void * __cdecl CustomAlloc::operator new(unsigned int)" (__imp_??2CustomAlloc@@SAPAXI@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void __cdecl CustomAlloc::operator delete(void *)" (__imp_??3CustomAlloc@@SAXPAX@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual int __thiscall CustomPlayerControllerManager::ProcessContacts(class CustomPlayerController const * const,struct NewtonWorldConvexCastReturnInfo * const,int)const " (__imp_?ProcessContacts@CustomPlayerControllerManager@@UBEHQBVCustomPlayerController@@QAUNewtonWorldConvexCastReturnInfo@@H@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual class CustomPlayerController * __thiscall CustomPlayerControllerManager::CreatePlayer(float,float,float,float,float,class dMatrix const &)" (__imp_?CreatePlayer@CustomPlayerControllerManager@@UAEPAVCustomPlayerController@@MMMMMABVdMatrix@@@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall CustomPlayerController::~CustomPlayerController(void)" (__imp_??1CustomPlayerController@@UAE@XZ)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CustomPlayerController::CustomPlayerController(void)" (__imp_??0CustomPlayerController@@QAE@XZ)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall CustomPlayerControllerManager::~CustomPlayerControllerManager(void)" (__imp_??1CustomPlayerControllerManager@@UAE@XZ)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CustomPlayerControllerManager::CustomPlayerControllerManager(struct NewtonWorld * const)" (__imp_??0CustomPlayerControllerManager@@QAE@QAUNewtonWorld@@@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodySetMatrix".
1>precompiled.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDestroyBody".
1>precompiled.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDestroyCollision".
1>PhysicUtils.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodyGetMassMatrix".
1>PhysicUtils.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonWorldRayCast".
1>PhysicUtils.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodyGetUserData".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonCreateDynamicBody".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodySetMassProperties".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodySetUserData".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonCreateBox".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonCreateSphere".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonCreateConvexHull".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonCreateTreeCollision".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonTreeCollisionBeginBuild".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonTreeCollisionAddFace".
1>RigidBodyHandler.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonTreeCollisionEndBuild".
1>PhysicBody.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodySetForce".
1>PhysicBody.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodyAddForce".
1>PhysicBody.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodyAddTorque".
1>PhysicBody.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodySetForceAndTorqueCallback".
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: JointLibary MD linking

Postby FSA » Thu Aug 08, 2013 5:02 pm

I've now looked again in the demosSandbox and I could notice that you don't link the libarys. You only add all the projects to the visual studio solution. But that's not possible for me. I can't add any source or projectfiles.
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: JointLibary MD linking

Postby Julio Jerez » Thu Aug 08, 2013 5:21 pm

Yes I add the sub project as project dependecies. I find that so much easier...

give me until the weeknd I will make a cMake script that will crate project files of many diffrent configurations.
That way you cn amake you won Project Files by specific whe options you want, and for any version of any compiler.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: JointLibary MD linking

Postby FSA » Fri Aug 16, 2013 9:13 am

I've synched now. I'm a little bit confused because I've never worked with CMake before. Can you give me an explanation how I can link/build everything static in Release with MD configuration without an crash? :)
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: JointLibary MD linking

Postby Julio Jerez » Fri Aug 16, 2013 10:24 am

I never use CMake before, I am learning as I go alone. I started to build the prlject last weekend, but I have no finish yet, it is still a work in progress.

however if you want to use md libraries, if you open project
C:\Users\Julio\Desktop\newton-dynamics\packages\projects\visualStudio_2008\build.sln

you can select the release_md configuration and it will build of the subproject suing md, I mad that for the Ogre wrapper, has you try that?

Seen all that complication of project is what prompted me to look into CMake, the cool thing about CMake.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: JointLibary MD linking

Postby FSA » Fri Aug 16, 2013 10:59 am

I'm not using Ogre Engine. Is this also possible with the Visual Studio 2012 Project? 2008 is a little bit outdated. :D
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: JointLibary MD linking

Postby Julio Jerez » Fri Aug 16, 2013 12:08 pm

If you open the 2008 solution with VS2012 it will convert to a VS2012 solution, that should work
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: JointLibary MD linking

Postby FSA » Fri Aug 16, 2013 4:54 pm

I've now built the 2008 project in VS 2012 wit debug_mdd and release_md. When I try to link the release libaries I get these errors:
Code: Select all
Newton_BasicPlayerCtrl.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSyncThreadJobs".
1>Newton_BasicPlayerCtrl.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDispachThreadJob".
1>Newton_BasicPlayerCtrl.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CustomPlayerController::SetPlayerVelocity(float,float,float,float,class dVector const &,float)" (__imp_?SetPlayerVelocity@CustomPlayerController@@QAEXMMMMABVdVector@@M@Z)".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSetMemorySystem".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonCreate".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSetSolverModel".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonGetMaxThreadsCount".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonSetThreadsCount".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDestroyAllBodies".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonDestroy".
1>Physic.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonUpdate".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodyGetMatrix".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void * __cdecl CustomAlloc::operator new(unsigned int)" (__imp_??2CustomAlloc@@SAPAXI@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void __cdecl CustomAlloc::operator delete(void *)" (__imp_??3CustomAlloc@@SAXPAX@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual int __thiscall CustomPlayerControllerManager::ProcessContacts(class CustomPlayerController const * const,struct NewtonWorldConvexCastReturnInfo * const,int)const " (__imp_?ProcessContacts@CustomPlayerControllerManager@@UBEHQBVCustomPlayerController@@QAUNewtonWorldConvexCastReturnInfo@@H@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual class CustomPlayerController * __thiscall CustomPlayerControllerManager::CreatePlayer(float,float,float,float,float,class dMatrix const &)" (__imp_?CreatePlayer@CustomPlayerControllerManager@@UAEPAVCustomPlayerController@@MMMMMABVdMatrix@@@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall CustomPlayerController::~CustomPlayerController(void)" (__imp_??1CustomPlayerController@@UAE@XZ)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CustomPlayerController::CustomPlayerController(void)" (__imp_??0CustomPlayerController@@QAE@XZ)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall CustomPlayerControllerManager::~CustomPlayerControllerManager(void)" (__imp_??1CustomPlayerControllerManager@@UAE@XZ)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CustomPlayerControllerManager::CustomPlayerControllerManager(struct NewtonWorld * const)" (__imp_??0CustomPlayerControllerManager@@QAE@QAUNewtonWorld@@@Z)".
1>Player.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__NewtonBodySetMatrix".

And so on.

Now when I link the debug everthing links fine but I get a crash:
Attachments
Err.PNG
Err.PNG (26.86 KiB) Viewed 5179 times
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Re: JointLibary MD linking

Postby Julio Jerez » Fri Aug 16, 2013 6:22 pm

Ok I will make the _md for VS 2010 and 2012.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: JointLibary MD linking

Postby Julio Jerez » Sat Aug 17, 2013 2:03 am

Ok I checked in VS 2010 and VS 2012 build solution with debug_md and release_md configurations
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: JointLibary MD linking

Postby FSA » Sat Aug 17, 2013 7:09 am

OK I think something is really wrong with the project files or with my linking options.
I've built 2012project in Debug_md and I get errors which I've never seen before:
Code: Select all
error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall dgBallConstraint::SetLimits(class dgVector const &,float,float,float,class dgVector const &,float,float)" (?SetLimits@dgBallConstraint@@QAEXABVdgVector@@MMM0MM@Z)" in Funktion "_NewtonBallSetConeLimits".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgHingeConstraint::GetJointAngle(void)const " (?GetJointAngle@dgHingeConstraint@@QBEMXZ)" in Funktion "_NewtonHingeGetJointAngle".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgHingeConstraint::GetJointOmega(void)const " (?GetJointOmega@dgHingeConstraint@@QBEMXZ)" in Funktion "_NewtonHingeGetJointOmega".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class dgVector __thiscall dgHingeConstraint::GetJointForce(void)const " (?GetJointForce@dgHingeConstraint@@QBE?AVdgVector@@XZ)" in Funktion "_NewtonHingeGetJointForce".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgHingeConstraint::CalculateStopAlpha(float,class dgJointCallbackParam const *)const " (?CalculateStopAlpha@dgHingeConstraint@@QBEMMPBVdgJointCallbackParam@@@Z)" in Funktion "_NewtonHingeCalculateStopAlpha".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall dgHingeConstraint::SetJointParameterCallback(unsigned int (__cdecl*)(class dgHingeConstraint const &,class dgJointCallbackParam *))" (?SetJointParameterCallback@dgHingeConstraint@@QAEXP6AIABV1@PAVdgJointCallbackParam@@@Z@Z)" in Funktion "_NewtonHingeSetUserCallback".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgSlidingConstraint::GetJointPosit(void)const " (?GetJointPosit@dgSlidingConstraint@@QBEMXZ)" in Funktion "_NewtonSliderGetJointPosit".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgSlidingConstraint::GetJointVeloc(void)const " (?GetJointVeloc@dgSlidingConstraint@@QBEMXZ)" in Funktion "_NewtonSliderGetJointVeloc".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class dgVector __thiscall dgSlidingConstraint::GetJointForce(void)const " (?GetJointForce@dgSlidingConstraint@@QBE?AVdgVector@@XZ)" in Funktion "_NewtonSliderGetJointForce".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgSlidingConstraint::CalculateStopAccel(float,class dgJointCallbackParam const *)const " (?CalculateStopAccel@dgSlidingConstraint@@QBEMMPBVdgJointCallbackParam@@@Z)" in Funktion "_NewtonSliderCalculateStopAccel".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall dgSlidingConstraint::SetJointParameterCallback(unsigned int (__cdecl*)(class dgSlidingConstraint const &,class dgJointCallbackParam *))" (?SetJointParameterCallback@dgSlidingConstraint@@QAEXP6AIABV1@PAVdgJointCallbackParam@@@Z@Z)" in Funktion "_NewtonSliderSetUserCallback".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class dgVector __thiscall dgUpVectorConstraint::GetPinDir(void)const " (?GetPinDir@dgUpVectorConstraint@@QBE?AVdgVector@@XZ)" in Funktion "_NewtonUpVectorGetPin".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall dgUpVectorConstraint::SetPinDir(class dgVector const &)" (?SetPinDir@dgUpVectorConstraint@@QAEXABVdgVector@@@Z)" in Funktion "_NewtonUpVectorSetPin".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: int __thiscall dgCollisionConvexHull::GetFaceIndices(int,int * const)const " (?GetFaceIndices@dgCollisionConvexHull@@QBEHHQAH@Z)" in Funktion "_NewtonConvexHullGetFaceIndices".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgUniversalConstraint::GetJointAngle0(void)const " (?GetJointAngle0@dgUniversalConstraint@@QBEMXZ)" in Funktion "_NewtonUniversalGetJointAngle0".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgUniversalConstraint::GetJointAngle1(void)const " (?GetJointAngle1@dgUniversalConstraint@@QBEMXZ)" in Funktion "_NewtonUniversalGetJointAngle1".
1>newton_d.lib(Newton.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: float __thiscall dgUniversalConstraint::GetJointOmega0(void)const " (?GetJointOmega0@dgUniversalConstraint@@QBEMXZ)" in Funktion "_NewtonUniversalGetJointOmega0".
1>newton_d.lib(NewtonClass.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: void __thiscall dgBilateralConstraint::SetMotorAcceleration(int,float,class dgContraintDescritor &)" (?SetMotorAcceleration@dgBilateralConstraint@@IAEXHMAAVdgContraintDescritor@@@Z)" in Funktion ""public: void __thiscall NewtonUserJoint::SetAcceleration(float)" (?SetAcceleration@NewtonUserJoint@@QAEXM@Z)".
1>newton_d.lib(NewtonClass.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: void __thiscall dgBilateralConstraint::SetJacobianDerivative(int,class dgContraintDescritor &,float const *,float const *,float * const)" (?SetJacobianDerivative@dgBilateralConstraint@@IAEXHAAVdgContraintDescritor@@PBM1QAM@Z)" in Funktion ""public: void __thiscall NewtonUserJoint::AddGeneralRowJacobian(float const *,float const *)" (?AddGeneralRowJacobian@NewtonUserJoint@@QAEXPBM0@Z)".
1>newton_d.lib(NewtonClass.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: void __thiscall dgBilateralConstraint::CalculatePointDerivative(int,class dgContraintDescritor &,class dgVector const &,class dgConstraint::dgPointParam const &,float * const)" (?CalculatePointDerivative@dgBilateralConstraint@@IAEXHAAVdgContraintDescritor@@ABVdgVector@@ABVdgPointParam@dgConstraint@@QAM@Z)" in Funktion ""public: void __thiscall NewtonUserJoint::AddLinearRowJacobian(class dgVector const &,class dgVector const &,class dgVector const &)" (?AddLinearRowJacobian@NewtonUserJoint@@QAEXABVdgVector@@00@Z)".
1>newton_d.lib(NewtonClass.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: void __thiscall dgBilateralConstraint::CalculateAngularDerivative(int,class dgContraintDescritor &,class dgVector const &,float,float,float * const)" (?CalculateAngularDerivative@dgBilateralConstraint@@IAEXHAAVdgContraintDescritor@@ABVdgVector@@MMQAM@Z)" in Funktion ""public: void __thiscall NewtonUserJoint::AddAngularRowJacobian(class dgVector const &,float)" (?AddAngularRowJacobian@NewtonUserJoint@@QAEXABVdgVector@@M@Z)".
1>newton_d.lib(NewtonClass.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: float __thiscall dgBilateralConstraint::CalculateSpringDamperAcceleration(int,class dgContraintDescritor const &,float,class dgVector const &,class dgVector const &,float,float)" (?CalculateSpringDamperAcceleration@dgBilateralConstraint@@IAEMHABVdgContraintDescritor@@MABVdgVector@@1MM@Z)" in Funktion ""public: void __thiscall NewtonUserJoint::SetSpringDamperAcceleration(float,float)" (?SetSpringDamperAcceleration@NewtonUserJoint@@QAEXMM@Z)".
1>newton_d.lib(NewtonClass.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: void __thiscall dgBilateralConstraint::SetMaxContactsForExactSolver(bool,int)" (?SetMaxContactsForExactSolver@dgBilateralConstraint@@IAEX_NH@Z)" in Funktion ""public: void __thiscall NewtonUserJoint::SetMaxContactsForExactSolver(bool,int)" (?SetMaxContactsForExactSolver@NewtonUserJoint@@QAEX_NH@Z)".
1>newton_d.lib(NewtonClass.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""protected: __thiscall dgUserConstraint::dgUserConstraint(class dgWorld * const,class dgBody * const,class dgBody * const,int)" (??0dgUserConstraint@@IAE@QAVdgWorld@@QAVdgBody@@1H@Z)" in Funktion ""public: __thiscall NewtonUserJoint::NewtonUserJoint(class dgWorld *,int,void (__cdecl*)(struct NewtonJoint const * const,float,int),void (__cdecl*)(struct NewtonJoint const * const,struct NewtonJointRecord * const),class dgBody *,class dgBody *)" (??0NewtonUserJoint@@QAE@PAVdgWorld@@HP6AXQBUNewtonJoint@@MH@ZP6AX1QAUNewtonJointRecord@@@ZPAVdgBody@@5@Z)".

And much more of these errors.

I link the following libaries:
dContainers_d.lib
newton_d.lib
dMath_d.lib
dJointLibrary_d.lib

Is this just a mistake from newton or did I something wrong?
User avatar
FSA
 
Posts: 322
Joined: Wed Dec 21, 2011 9:47 am

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron