I'm still trying to start working with newton300. I posted about my previous experience in compiling it here http://newtondynamics.com/forum/viewtopic.php?f=9&t=7153.
I also treid compiling the tutorials, but I have some trouble with it. I checked out the current svn.
I think dJointLibraray already requires core300, for example it uses NewtonDestroyCollision() instead of NewtonReleaseCollision. While doing so, it includes the Newton.h file which lies in the packages dir. But that is a copy of the core2xx newton.h and therefore, it doesn't compile. replacing it with the 300 newton.h fixes that.
Compiling the actual tutorials is more complicated. They still require Newton2xx, because it uses the old functions. I was able to fix it, but some things I'm not sure about. For example. what is the new updatemode paramter of NewtonUpdate() ? I just put a 0 there ...
After that, I can't get rid of these
- Code: Select all
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonDestroy referenced in function "void __cdecl ShutDown(void)" (?ShutDown@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonDestroyAllBodies referenced in function "void __cdecl ShutDown(void)" (?ShutDown@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonUpdate referenced in function "void __cdecl AdvanceSimulation(int)" (?AdvanceSimulation@@YAXH@Z)
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonSetSolverModel referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonSetPlatformArchitecture referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonCreate referenced in function _SDL_main
1>main.obj : error LNK2019: unresolved external symbol __imp__NewtonSetMemorySystem referenced in function _SDL_main
1>../Win32/Tutorial_101_GettingStarted/Release\Tutorial_101_GettingStarted.exe : fatal error LNK1120: 7 unresolved externals
That's just from the 101 tutorial, the rest is similar. I tried adding newton.lib to the list of things to link with manually but it doesn't change a thing. Any idea how to fix this?