Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Categories
- All Discussions1,524
- General534
- Graphics109
- GPU Computing419
- Mobile141
- Pro Graphics163
- Tools158
In this Discussion
- Dev-san January 18
- lordDominus February 11
- Swoop January 18
Tags in this Discussion
- physx 272
- physx-3.1 10
- character-controller 8
- physx-sdk 5
- linkerror 1
PxCreateControllerManager - Unresolved External Symbol
-
Hi, I'm trying to get a character controller working, and this has been standing in my way for the last 5 hours, I was searching and found that adding
#define PX_PHYSX_CHARACTER_STATIC_LIB
would fix it for some people, but unfortunately it doesn't work for me, so I decided to ask, maybe someone can help me.mControllerManager = PxCreateControllerManager(Engine::PhysicsSystem::getSingleton().getWorld()->getPxPhysics()->getFoundation());
The code above is how I'm trying to initialize the controller manager, and it throws a linker error.
The libraries to which I link my project are the following:Foundation.lib
PhysX3Common.lib
PhysX3CharacterKinematic.lib
PhysX3Cooking_x86.lib
PhysX3_x86.lib
LowLevel.lib
GeomUtils.lib
SceneQuery.lib
SimulationController.lib
PxTask.lib
PhysX3Extensions.lib
Is there anything I'm missing ? -
3 Comments sorted by
-
Assuming windows and visual C++
Try adding it to the project settings under C/C++ -> Preprocessor: Preprocessor Definitions
at the end of the list separated by a ;, like
;PX_PHYSX_CHARACTER_STATIC_LIB
see if that works -
It didn't work on my project. I'm yet to track down why, but when I removed it in the samples, the exact same error popped up, so that's gotta be it, I just need to find out what exactly is causing it not to work for my project... Will report back with a solution.
-- Update: --
I tried everything I could, it didn't work, so I decided to write my own character controller. -
I had the same problem, but putting PX_PHYSX_CHARACTER_STATIC_LIB into C/C++ -> Preprocessor: Preprocessor Definitions solved it