Hi, I have a simple C+ library that uses Protocol Buffers and a gRPC client and compiles and functions correctly when included into a standalone executable (Xcode 9.4.1). However, I'm seeing compilation errors when include my library in an Unreal Engine 4 plugin. The errors are as follows:
/src/dev/services/Test/Services/EnvironmentService.pb.h:16:15: error: 'PROTOBUF_MIN_PROTOC_VERSION' is not defined, evaluates to 0 [-Werror,-Wundef] /protobuf/src/google/protobuf/stubs/port.h:206:7: error: 'GOOGLE_PROTOBUF_USE_UNALIGNED' is not defined, evaluates to 0 [-Werror,-Wundef] /protobuf/src/google/protobuf/generated_message_util.h:63:5: error: 'GOOGLE_PROTOBUF_ENABLE_MOMI_PARSER' is not defined, evaluates to 0 [-Werror,-Wundef] With this gRPC error too: /grpc/include/grpc/impl/codegen/port_platform.h:457:5: error: 'GPR_FORBID_UNREACHABLE_CODE' is not defined, evaluates to 0 [-Werror,-Wundef] I'm having problems trouble shooting this as I can't find where PROTOBUF_MIN_PROTOC_VERSION, GOOGLE_PROTOBUF_USE_UNALIGNED or GOOGLE_PROTOBUF_ENABLE_MOMI_PARSER are actually defined. Can anyone help? Thanks, Luke -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
