Unreal Engine 4.11 Preview

Still having problems with the LOCTEXT_NAMESPACE macro in 4.11, no official word yet. answers.unrealengine.com/questions/388117/loctext-namespace-issues-in-411.html

Somebody posted there and told me to define LOCTEXT_NAMESPACE multiple times, but I don’t understand how that makes sense? Additionally I found a documentation page that tells me only to define it once, here: Programming with C++ in Unreal Engine | Unreal Engine 5.1 Documentation

The multiple-define thing fixed it on Windows and Android, but the Mac compiler complains about having defined something multiple times - so clearly that can’t be the right way to sort this out. Again, this never used to be a problem in 4.10. This is what’s causing the error:



#define LOCTEXT_NAMESPACE "OParams_ECC" 
#define LOCTEXT_NAMESPACE "OParams_INC" 
#define LOCTEXT_NAMESPACE "OParams_SMA"
#define LOCTEXT_NAMESPACE "OParams_LAN"
#define LOCTEXT_NAMESPACE "OParams_AOP"
#define LOCTEXT_NAMESPACE "OParams_MAAE"

// insert wicked-awesome game code here

#undef LOCTEXT_NAMESPACE


EDIT: Nevermind, turns out I’m just doing it wrong. Could probably do with more clarity in the documentation here.