Newton Fails to Build under Visual Studio 2010

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Newton Fails to Build under Visual Studio 2010

Postby ebonair » Wed Jun 06, 2012 12:50 pm

The project file at: newton-dynamics-2.35\coreLibrary_200\projets\windows\project_vs2010\newton.sln

fails to build. Tested version 2.35 on 64-bit Windows 7, tried both Win32 and x64 architectures. Different build targets produce one of two errors:

debugDoubleDll, debugSingleDll, releaseDoubleDll, releaseSingleDll:

Code: Select all
1>------ Build started: Project: newton, Configuration: debugSingleDll Win32 ------
1>Build started 6/6/2012 11:44:40 AM.
1>InitializeBuildStatus:
1>  Touching "Win32/newton/debugSingleDll\newton.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>Link:
1>     Creating library Win32/newton/debugSingleDll\newton_d.lib and object Win32/newton/debugSingleDll\newton_d.exp
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: void __thiscall dgMeshEffectSolidTree::AddFace(class dgMeshEffect const &,class dgEdge * const)" (?AddFace@dgMeshEffectSolidTree@@QAEXABVdgMeshEffect@@QAVdgEdge@@@Z) referenced in function "public: class dgMeshEffectSolidTree * __thiscall dgMeshEffect::CreateSolidTree(void)const " (?CreateSolidTree@dgMeshEffect@@QBEPAVdgMeshEffectSolidTree@@XZ)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: __thiscall dgMeshEffectSolidTree::dgMeshEffectSolidTree(class dgMeshEffect const &,class dgEdge * const)" (??0dgMeshEffectSolidTree@@QAE@ABVdgMeshEffect@@QAVdgEdge@@@Z) referenced in function "public: class dgMeshEffectSolidTree * __thiscall dgMeshEffect::CreateSolidTree(void)const " (?CreateSolidTree@dgMeshEffect@@QBEPAVdgMeshEffectSolidTree@@XZ)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: __thiscall dgMeshEffectSolidTree::~dgMeshEffectSolidTree(void)" (??1dgMeshEffectSolidTree@@QAE@XZ) referenced in function "public: void * __thiscall dgMeshEffectSolidTree::`scalar deleting destructor'(unsigned int)" (??_GdgMeshEffectSolidTree@@QAEPAXI@Z)
1>physics_d.lib(dgMeshEffect2.obj) : error LNK2001: unresolved external symbol "public: __thiscall dgMeshEffectSolidTree::~dgMeshEffectSolidTree(void)" (??1dgMeshEffectSolidTree@@QAE@XZ)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: void __thiscall dgMeshTreeCSGFace::MergeMissingVertex(class dgMeshTreeCSGFace const * const)" (?MergeMissingVertex@dgMeshTreeCSGFace@@QAEXQBV1@@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * *const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: enum dgMeshEffectSolidTree::dgPlaneType __thiscall dgMeshEffectSolidTree::GetFaceSide(class dgMeshTreeCSGFace const * const)const " (?GetFaceSide@dgMeshEffectSolidTree@@QBE?AW4dgPlaneType@1@QBVdgMeshTreeCSGFace@@@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * * const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: void __thiscall dgMeshTreeCSGFace::Clip(class dgHugeVector const &,class dgMeshTreeCSGFace * *,class dgMeshTreeCSGFace * *)" (?Clip@dgMeshTreeCSGFace@@QAEXABVdgHugeVector@@PAPAV1@1@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * * const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect.obj) : error LNK2019: unresolved external symbol "public: __thiscall dgMeshTreeCSGFace::dgMeshTreeCSGFace(class dgMeshEffect const &,class dgEdge * const)" (??0dgMeshTreeCSGFace@@QAE@ABVdgMeshEffect@@QAVdgEdge@@@Z) referenced in function "protected: void __thiscall dgMeshEffect::ClipMesh(class dgMeshEffectSolidTree const * const,class dgMeshEffect * * const,class dgMeshEffect * * const,class dgMeshEffect * * const)const " (?ClipMesh@dgMeshEffect@@IBEXQBVdgMeshEffectSolidTree@@QAPAV1@11@Z)
1>physics_d.lib(dgMeshEffect2.obj) : error LNK2019: unresolved external symbol "public: enum dgMeshEffectSolidTree::dgPlaneType __thiscall dgMeshEffectSolidTree::GetPointSide(class dgHugeVector const &)const " (?GetPointSide@dgMeshEffectSolidTree@@QBE?AW4dgPlaneType@1@ABVdgHugeVector@@@Z) referenced in function "public: class dgMeshEffect * __thiscall dgMeshEffect::CreateVoronoiPartition(int,int,float const * const,int,class dgMatrix &)const " (?CreateVoronoiPartition@dgMeshEffect@@QBEPAV1@HHQBMHAAVdgMatrix@@@Z)
1>Win32/newton/debugSingleDll\newton_d.dll : fatal error LNK1120: 8 unresolved externals
1>
1>Build FAILED.


debugSingleLibMd, debugSingleLibMt, releaseSingleLibMd, releaseSingleLibMt:

Code: Select all
3>Build started 6/6/2012 11:42:05 AM.
3>InitializeBuildStatus:
3>  Creating "x64/newton/debugSingleLibMt\newton.unsuccessfulbuild" because "AlwaysCreate" was specified.
3>ClCompile:
3>  NewtonClass.cpp
3>  Newton.cpp
3>..\..\..\source\newton\Newton.cpp(116): warning C4273: 'NewtonGetMemoryUsed' : inconsistent dll linkage
3>          c:\users\demo\david\newton-dynamics-2.35\corelibrary_200\source\newton\Newton.h(368) : see previous definition of 'NewtonGetMemoryUsed'
3>..\..\..\source\newton\Newton.cpp(129): warning C4273: 'NewtonSetMemorySystem' : inconsistent dll linkage
3>          c:\users\demo\david\newton-dynamics-2.35\corelibrary_200\source\newton\Newton.h(369) : see previous definition of 'NewtonSetMemorySystem'
3>..\..\..\source\newton\Newton.cpp(169): warning C4273: 'NewtonCreate' : inconsistent dll linkage

... there are roughly 100 similar messages
ebonair
 
Posts: 5
Joined: Mon Jun 04, 2012 4:09 pm

Re: Newton Fails to Build under Visual Studio 2010

Postby Sweenie » Wed Jun 06, 2012 1:28 pm

Did you check out the source from svn or downloaded it from the download page?
Sweenie
 
Posts: 498
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: Newton Fails to Build under Visual Studio 2010

Postby peterkort » Thu Jun 07, 2012 12:53 pm

I am having the same problem.
I downloaded the .rar from http://code.google.com/p/newton-dynamics/downloads/detail?name=newton-dynamics-2.35.rar&can=2&q=

Edit - I just grabbed the svn rev. 2086, and it builds perfectly.
peterkort
 
Posts: 1
Joined: Thu Jun 07, 2012 12:49 pm


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 9 guests

cron