# Global namespace is already defined

**URL:** <https://forums.unrealengine.com/t/global-namespace-is-already-defined/134813>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [December 11, 2019, 12:03am UTC](https://forums.unrealengine.com/t/global-namespace-is-already-defined/134813 "2019-12-11T00:03:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TetraStudiosDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TetraStudiosDev](https://forums.unrealengine.com/u/TetraStudiosDev)\
**Post date:** [December 11, 2019, 12:03am UTC](https://forums.unrealengine.com/t/global-namespace-is-already-defined/134813/1 "2019-12-11T00:03:57Z")

</div>

I am having issues compiling the WhatsMyPublicIP plugin for 4.23.1 using VS2019 – The file can be found here: [WhatsMyPublicIP-ue4-plugin/WhatsMyPublicIP.Build.cs at main · alexhajdu/WhatsMyPublicIP-ue4-plugin · GitHub](https://github.com/alexhajdu/WhatsMyPublicIP-ue4-plugin/blob/master/Source/WhatsMyPublicIP/WhatsMyPublicIP.Build.cs)

```auto

`UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): d:\VRShooter\Plugins\WhatsMyPublicIP-ue4-plugin-master\Source\WhatsMyPublicIP\WhatsMyPublicIP.Build.cs(6,7) : error CS0101: The namespace '&lt;global namespace&gt;' already contains a definition for 'WhatsMyPublicIP' `

```

I need this plugin to be working as soon as possible, so I’d really appreciate a response.

---

<div class="post-metadata">

**Author:** ![QuaternionSlerp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@QuaternionSlerp](https://forums.unrealengine.com/u/QuaternionSlerp)\
**Post date:** [December 11, 2019, 1:27am UTC](https://forums.unrealengine.com/t/global-namespace-is-already-defined/134813/2 "2019-12-11T01:27:48Z")

</div>

This usually means you have another namespace or class with an identical name.Search your VS project for WhatsMyPublicIP and see if you find duplicates. Could maybe be an old version of the plugin along with a new version of the plugin now that you’ve upgraded your engine version. Could also try deleting WhatsMyPublicIP.Build.cs and regenerating your project files.

---

<div class="post-metadata">

**Author:** ![TetraStudiosDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TetraStudiosDev](https://forums.unrealengine.com/u/TetraStudiosDev)\
**Post date:** [December 12, 2019, 10:48am UTC](https://forums.unrealengine.com/t/global-namespace-is-already-defined/134813/3 "2019-12-12T10:48:54Z")

</div>

Yep, deleting the Intermediate folder and restarting the project worked! Thanks

---

<div class="post-metadata">

**Author:** ![QuaternionSlerp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@QuaternionSlerp](https://forums.unrealengine.com/u/QuaternionSlerp)\
**Post date:** [December 13, 2019, 8:07pm UTC](https://forums.unrealengine.com/t/global-namespace-is-already-defined/134813/4 "2019-12-13T20:07:17Z")

</div>

@e3pojedi Awesome, happy to hear that! Have a great day and happy coding!
