newton and vs2005

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

newton and vs2005

Postby joewan » Sat Aug 07, 2010 12:17 pm

Hi guys,
I have read many documents about newton and ogrenewt, at last I find newton dll without supporting vs2005, I feel very surprised.
In our project, we must to use vs2005 as our IDE.

I plan to use ogre1.64 + newton2.24+ ogrenewt2.0 + vs2005 at the beginning.And now I meet a problem, I can only run my program(ogrenewt demos) in the Release mode, but can not normally run in the Debug mode. The error information is below:
the application failed to initialize properly 0xc0150002

Before this problem, I do not know you only provide newton vs2003 dll and vs2008 dll.

Now I want to know Whether I need to give up newton if I need to use vs2005?

I hope you can give me some suggestions. Any help will be grateful!


another question is that:
what is the meaning of "lib_vs7_mt", "lib_vs7_md", "dll_double_vs7", "dll_vs7"?
Last edited by joewan on Sat Aug 07, 2010 2:02 pm, edited 1 time in total.
joewan
 
Posts: 5
Joined: Mon Jun 21, 2010 5:04 am

Re: newton and vs2005

Postby Julio Jerez » Sat Aug 07, 2010 2:01 pm

All Newton DLLs and libraries works with VS 2005. even teh oen buidl with VS 2008
It is the projects file that do not work with VS 2005, bu th awas because teh thirr pary library that I use form vestion 2.08 to 2.24 are so huge that teh arcive will be ove 100 mg if I support so many SDK.
starting with 2.25 the demo will compatible with all version of VS starting from VS 2003, however Archemdia, the New Editor will not,
and this is because it uses Microsofr NetFramework 4 wich only works with VS 2008 service pack 1
however like I mentioned all of the libraries can be use with any version of VS evemn VS6, and 2002

lib_vs7_mt = Vs 2003, microsoff multithread library,
lib_vs7_md = VS 2007, micrsoft multothreaded DLL libarries
dll_double_vs7" = VS 2007 Dll

On the VS 2005 I can no really distribute VS project files with VS 2005 since it is not longer avaible from Microsof and I do not own a Ligetimate copy of it.
I only have VS 2003 and upgraded to 2008.
I can not even find the Express version that can be downloaded for Free.
Julio Jerez
Moderator
Moderator
 
Posts: 12452
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: newton and vs2005

Postby joewan » Sat Aug 07, 2010 2:25 pm

Julio Jerez wrote:All Newton DLLs and libraries works with VS 2005. even teh oen buidl with VS 2008
It is the projects file that do not work with VS 2005, bu th awas because teh thirr pary library that I use form vestion 2.08 to 2.24 are so huge that teh arcive will be ove 100 mg if I support so many SDK.
starting with 2.25 the demo will compatible with all version of VS starting from VS 2003, however Archemdia, the New Editor will not,
and this is because it uses Microsofr NetFramework 4 wich only works with VS 2008 service pack 1
however like I mentioned all of the libraries can be use with any version of VS evemn VS6, and 2002

lib_vs7_mt = Vs 2003, microsoff multithread library,
lib_vs7_md = VS 2007, micrsoft multothreaded DLL libarries
dll_double_vs7" = VS 2007 Dll

On the VS 2005 I can no really distribute VS project files with VS 2005 since it is not longer avaible from Microsof and I do not own a Ligetimate copy of it.
I only have VS 2003 and upgraded to 2008.
I can not even find the Express version that can be downloaded for Free.


when I link newton.lib in the folder lib_vs7_mt or lib_vs7_md, there will be many link errors (error LNK2001), why?
"
1>OgreNewt_RayCastVehicle.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
1>OgreNewt_Tools.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
1>OgreNewt_Vehicle.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
1>OgreNewt_World.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
1>OgreNewt_MaterialID.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
1>OgreNewt_MaterialPair.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
1>OgreNewt_PlayerController.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
1>OgreNewt_RayCast.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
...
"


dll_vs7 is vs2003 or vs2007?
All Newton DLLs and libraries works with VS 2005. newton.dll of dll_vs7 , dll_vs9, dll_double_vs7, dll_double_vs9 all work with vs2005?
joewan
 
Posts: 5
Joined: Mon Jun 21, 2010 5:04 am

Re: newton and vs2005

Postby Julio Jerez » Sat Aug 07, 2010 2:50 pm

[quote="joewan"]
1>OgreNewt_RayCastVehicle.obj : error LNK2001: unresolved external symbol __imp__NewtonCollisionGetUserID
"[/color]
that funtion is defined in the header as:
NEWTON_API unsigned NewtonCollisionGetUserID (const NewtonCollision* convexCollision);

But this is not a VS2005 problem, you are probably linkin to a wrong library
if yo uare using newton las DLL you sodul link to libraru
NewtonSDK\sdk\x32\dll_vs9\newton.lib
NewtonSDK\sdk\x32\dll_vs9\newton.dll

if you are using it as static link you can use
NewtonSDK\sdk\x32\lib_vs9_mt\newton.lib

you can also try the 2003 library bt changing VS9 to VS7 in teh path, it work I have tested many time.
I work with VS 2005 at work and this works fine.
Julio Jerez
Moderator
Moderator
 
Posts: 12452
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 222 guests