-
tmason
- Posts: 19
- Joined: Wed Aug 27, 2014 5:02 pm
Post
by tmason »
Hello,
I have attempted to compile and use the multithreaded example that comes with the Bullet Source without success.
I get the following set of errors:
Code: Select all
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "public: __thiscall SpuGatheringCollisionDispatcher::SpuGatheringCollisionDispatcher(class btThreadSupportInterface *,unsigned int,class btCollisionConfiguration *)" (??0SpuGatheringCollisionDispatcher@@QAE@PAVbtThreadSupportInterface@@IPAVbtCollisionConfiguration@@@Z) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "public: __thiscall Win32ThreadSupport::Win32ThreadSupport(struct Win32ThreadSupport::Win32ThreadConstructionInfo const &)" (??0Win32ThreadSupport@@QAE@ABUWin32ThreadConstructionInfo@0@@Z) referenced in function "class btThreadSupportInterface * __cdecl createSolverThreadSupport(int)" (?createSolverThreadSupport@@YAPAVbtThreadSupportInterface@@H@Z)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void __cdecl processCollisionTask(void *,void *)" (?processCollisionTask@@YAXPAX0@Z) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void * __cdecl createCollisionLocalStoreMemory(void)" (?createCollisionLocalStoreMemory@@YAPAXXZ) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void __cdecl deleteCollisionLocalStoreMemory(void)" (?deleteCollisionLocalStoreMemory@@YAXXZ) referenced in function "public: void __thiscall MultiThreadedDemo::exitPhysics(void)" (?exitPhysics@MultiThreadedDemo@@QAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void __cdecl SolverThreadFunc(void *,void *)" (?SolverThreadFunc@@YAXPAX0@Z) referenced in function "class btThreadSupportInterface * __cdecl createSolverThreadSupport(int)" (?createSolverThreadSupport@@YAPAVbtThreadSupportInterface@@H@Z)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void * __cdecl SolverlsMemoryFunc(void)" (?SolverlsMemoryFunc@@YAPAXXZ) referenced in function "class btThreadSupportInterface * __cdecl createSolverThreadSupport(int)" (?createSolverThreadSupport@@YAPAVbtThreadSupportInterface@@H@Z)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "public: __thiscall btParallelConstraintSolver::btParallelConstraintSolver(class btThreadSupportInterface *)" (??0btParallelConstraintSolver@@QAE@PAVbtThreadSupportInterface@@@Z) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
I assume there is a library file I am missing but I included everything in the library folder after compiling from source.
What else can I do to try and get the demo to work?
Thank you.
-
Basroil
- Posts: 463
- Joined: Fri Nov 30, 2012 4:50 am
Post
by Basroil »
tmason wrote:Hello,
I have attempted to compile and use the multithreaded example that comes with the Bullet Source without success.
I get the following set of errors:
Code: Select all
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "public: __thiscall SpuGatheringCollisionDispatcher::SpuGatheringCollisionDispatcher(class btThreadSupportInterface *,unsigned int,class btCollisionConfiguration *)" (??0SpuGatheringCollisionDispatcher@@QAE@PAVbtThreadSupportInterface@@IPAVbtCollisionConfiguration@@@Z) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "public: __thiscall Win32ThreadSupport::Win32ThreadSupport(struct Win32ThreadSupport::Win32ThreadConstructionInfo const &)" (??0Win32ThreadSupport@@QAE@ABUWin32ThreadConstructionInfo@0@@Z) referenced in function "class btThreadSupportInterface * __cdecl createSolverThreadSupport(int)" (?createSolverThreadSupport@@YAPAVbtThreadSupportInterface@@H@Z)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void __cdecl processCollisionTask(void *,void *)" (?processCollisionTask@@YAXPAX0@Z) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void * __cdecl createCollisionLocalStoreMemory(void)" (?createCollisionLocalStoreMemory@@YAPAXXZ) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void __cdecl deleteCollisionLocalStoreMemory(void)" (?deleteCollisionLocalStoreMemory@@YAXXZ) referenced in function "public: void __thiscall MultiThreadedDemo::exitPhysics(void)" (?exitPhysics@MultiThreadedDemo@@QAEXXZ)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void __cdecl SolverThreadFunc(void *,void *)" (?SolverThreadFunc@@YAXPAX0@Z) referenced in function "class btThreadSupportInterface * __cdecl createSolverThreadSupport(int)" (?createSolverThreadSupport@@YAPAVbtThreadSupportInterface@@H@Z)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "void * __cdecl SolverlsMemoryFunc(void)" (?SolverlsMemoryFunc@@YAPAXXZ) referenced in function "class btThreadSupportInterface * __cdecl createSolverThreadSupport(int)" (?createSolverThreadSupport@@YAPAVbtThreadSupportInterface@@H@Z)
1>MultiThreadedDemo.obj : error LNK2019: unresolved external symbol "public: __thiscall btParallelConstraintSolver::btParallelConstraintSolver(class btThreadSupportInterface *)" (??0btParallelConstraintSolver@@QAE@PAVbtThreadSupportInterface@@@Z) referenced in function "public: virtual void __thiscall MultiThreadedDemo::initPhysics(void)" (?initPhysics@MultiThreadedDemo@@UAEXXZ)
I assume there is a library file I am missing but I included everything in the library folder after compiling from source.
What else can I do to try and get the demo to work?
Thank you.
Tried using the VS2010 solution file included in the code? It should work without issues.
Some of the things you might be seeing are:
-include paths not properly set up
-corrupted build files
-outdated object files
Luckily they are easy enough to fix if you check the VS2010 solution file to see what went wrong