Read OSC messages FOSCMessage

Hello all,

I’m trying to use the new OSC plugin in my c++ project. I’ve been able to set up my server and have a working receiving event but I’m having trouble reading the message. Currently I’m trying to use the FOSCStream object like this:


void AOSCActorServer::HandleOSCMessage(const FOSCAddress & AddressPattern, const FOSCMessage & Message)
{
FOSCStream Stream;
Message.GetPacket()->WriteData(Stream);
}

However doing so gives me a linking compile error:


CompilerResultsLog: Error: OSCActorServer.cpp.obj : error LNK2019: unresolved external symbol "public: __cdecl FOSCStream::FOSCStream(void)" (??0FOSCStream@@QEAA@XZ) referenced in function "protected: void __cdecl AOSCActorServer::HandleOSCMessage(struct FOSCAddress const &,struct FOSCMessage const &)" (?HandleOSCMessage@AOSCActorServer@@IEAAXAEBUFOSCAddre
ss@@AEBUFOSCMessage@@@Z)
CompilerResultsLog: Error: C:\Users\\Documents\Unreal Projects
DisplayTest
DisplayTest\Binaries\Win64\UE4Editor-nDisplayTest-5121.dll : fatal error LNK1120: 1 unresolved externals

I believe I have correctly included the plugin into my build as everything else works, and using Blueprints also works. Does anyone have any advice on receiving messages using c++ OSC?

Thanks!

FOSCStream is not exported OSC_API.



.Build.cs
PublicDependencyModuleNames.Add("OSC");


OSCStream.h
class FOSCStream // --> class OSC_API FOSCStream ???
{
public:
...
};



Thanks for the response @empty2fill. I tried this but couldn’t figure out how to recompile the plugin. I rebuilt my solution but I don’t think that affects the engine. What do I do to recompile the engine plugins?