I’m writing a function for reading data from a TCP port and to do that I’m including the header file “Networking.h” in Runtime/Networking/Public.
When I do this, however, the compiler throws an “error: unknown type name ‘NETWORKING_API’” in code “NETWORKING_API FString ToString() const;” when parsing /Users/Shared/Epic Games/UE_4.17/Engine/Source/Runtime/Networking/Public/Interfaces/IPv4/IPv4SubnetMask.h:172:2.
Can someone tell me why it’s doing this?
Relevant details:
-
Running this on Xcode in Mac with UE4.17.1
-
Must include full path from source “Runtime/Networking/Public/Networking.h” to import header file
-
Other errors caught during compile
IPv4SubnetMask.h:172:24: error: expected ‘;’ at end of declaration list
IPv4SubnetMask.h:182:28: error: use of undeclared identifier ‘ToString’
IPv4Address.h:6:10: fatal error: ‘Interfaces/IPv4/IPv4SubnetMask.h’ file not found