Unrecognized type 'FSocket'
Ok this is driving me a little crazy. I am unable to build my class because of an Unrecognized type 'FSocket' error in my header.
But I feel like I'm doing everything right. I've added "Sockets" and "Networking" to the PublicDependencyModuleNames in the build config and I've put a #include "Sockets.h" and #include "Networking.h" at the top of my header file, but as soon as I try to create a FSocket property it complains.
I even checked to make sure there is a declaration of FSocket in Sockets.h and it's there.
I can instance FSockets in my class constructor all I want, but I can't mention them in the header.
Unreal Engine 4.6.1 and MS Visual Studio 2013
asked Feb 17 '15 at 02:15 AM in C++ Programming
This is actually an error from the UnrealHeaderTool. You can't use FSocket as a property because it is not a USTRUCT. It should compile when you remove the UPROPERTY() macro.
answered Feb 18 '15 at 05:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here