4.12 XMPP - Can't fix missing declaration

Hi,

In the XMPP module.h you add 2 new function: OnXmppRoomCreated && OnXmppRoomConfigured.
Now I’m getting a compilation error because FXmppRoomId is not known. What should we add as an header in order to use this properly?

If I add the header file containing this declaration, I have a lot more errors saying that some class/struct are not defined. I don’t know how to fix this change properly in my implementation. (as of know, I using the XMPP module in my GameInstance Class)

for now, I add typedef FString FXmppRoomId; before the header, but that’s dirty coding.

I’m sorry to raise this as a bug, but I didn’t know in which category I should have set it to get your feedback as this is link to 4.12 migration

Thanks for your feedback

Hello ,

That’s a very odd issue. From diffing the 4.11 and 4.12 versions against each other, it is literally just those two functions being added so I’m not sure where the compilation error is coming from. I’ll leave this in bug reports as it seems like something that would affect anyone using this. I’ll be contacting someone more well versed in this particular module and get back to you asap. Thanks for the report!

Thanks for the feedback. I hope you can reach the develloper so he can explain how to use this module.

Compared to other modules, there are no “public” samples to use it, so we are in the dark :smiley: when implementing it.

Hi, how are you including xmpp in your project? Please send your project’s build.cs settings.

You should have something that looks like this:

PublicIncludePaths.Add("Runtime/Online/XMPP/Public");

 PublicDependencyModuleNames.AddRange(
            new string[] {
				"XMPP"
			}
        );

Hi,

I have set: PrivateDependencyModuleNames.Add (… “XMPP”)

I didn’t set any PublicIncludePaths or PrivateIncludePaths, I’m not familiar with.

What are they for?

I try with what you set with no succes.

The error message is still the same, it can’t find the definition for FXmppRoomId

So you know at the top of my cpp file , I have : #include “XmppModule.h”

Thanks,

You should use #include “Xmpp.h” instead. Give that a try

Yes that fix my issue.

Is it the right way to use module header, to call the “modulename.h” and not the “modulenamemodule.h”?
in our case XMPP.H and not XMPPModule.h

Thanks,