# Undefined reference to 'GPhysXSDK'

**URL:** <https://forums.unrealengine.com/t/undefined-reference-to-gphysxsdk/460608>\
**Category:** World Creation\
**Tags:** movement-component, physx, tank, unreal-engine, Physics, question\
**Created:** [January 15, 2020, 4:57pm UTC](https://forums.unrealengine.com/t/undefined-reference-to-gphysxsdk/460608 "2020-01-15T16:57:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3f79f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3f79f9](https://forums.unrealengine.com/u/anonymous_user_6f3f79f9)\
**Post date:** [January 15, 2020, 4:57pm UTC](https://forums.unrealengine.com/t/undefined-reference-to-gphysxsdk/460608/1 "2020-01-15T16:57:43Z")

</div>

I’m trying to fix the TankMovementComponent.cpp implemented in an external project on [GitHub](https://github.com/firzgard/UWOT/blob/master/Source/UWOT/Private/TankMovementComponent.cpp). When I compile through the UnrealEngine, it fails with the message pointing to where I use this variable:

> Undefined reference to ‘GPhysXSDK’

How can I get access to this global variable? It seem to have worked with previous Engine versions.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3f79f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3f79f9](https://forums.unrealengine.com/u/anonymous_user_6f3f79f9)\
**Post date:** [January 18, 2020, 1:09am UTC](https://forums.unrealengine.com/t/undefined-reference-to-gphysxsdk/460608/2 "2020-01-18T01:09:27Z")

</div>

I managed to solve it by adding command:

`SetupModulePhysicsSupport(Target);`

to the bottom of the constructor in my `CustomProject.Build.cs` script. I’m not sure is this the best solution nor what else this might do, but it works. Any suggestions are very welcome!
