Global namespace is already defined

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



`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 '<global namespace>' already contains a definition for 'WhatsMyPublicIP' `


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

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.

2 Likes

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

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