This might be an environment issue. Can you talk more about where and how you are building your application?
On Wednesday, March 22, 2023 at 11:51:48 PM UTC-7 xiaoliang jiao wrote: > I use gRPC 1.53.0-pre1 and protobuf 3.21.12.0. > I can create *.pb.h, *.pb.cc, *.grpc.pb.h, *.grpc.pb.cc files from > *.proto file. > But when i link grpc, it tells me about: this is the problem link > <https://github.com/grpc/grpc/issues/32677>. how can i solve it, thanks > for your help and time! > > > In file included from > /usr/local/include/google/protobuf/implicit_weak_message.h:39:0, > from /usr/local/include/google/protobuf/generated_message_util.h:54, > from /catkin_ws/build/nav_interfaces/dynamic_localmap.pb.h:26, > from > /catkin_ws/src/Navigation_ARM/Navigation/MappingModule/src/ros/DynamicMapManager/include/grpc_proto_utils.h:5, > from > /catkin_ws/src/Navigation_ARM/Navigation/MappingModule/src/ros/DynamicMapManager/include/DynamicMapManager.h:63, > from > /catkin_ws/src/Navigation_ARM/Navigation/MappingModule/src/ros/DynamicMapManager/src/DynamicMapManager_node.cpp:1: > /usr/local/include/google/protobuf/repeated_field.h: At global scope: > /usr/local/include/google/protobuf/repeated_field.h:145:1: error: invalid > application of 'sizeof' to incomplete type 'google::protobuf::__uint128_t' > PROTO_MEMSWAP_DEF_SIZE(__uint128_t, (1u << 31)) > ^ > /usr/local/include/google/protobuf/repeated_field.h:145:1: error: template > argument 1 is invalid > PROTO_MEMSWAP_DEF_SIZE(__uint128_t, (1u << 31)) > ^ > /usr/local/include/google/protobuf/repeated_field.h: In function 'int > google::protobuf::internal::memswap(char*, char*)': > /usr/local/include/google/protobuf/repeated_field.h:145:1: error: invalid > application of 'sizeof' to incomplete type 'google::protobuf::__uint128_t' > PROTO_MEMSWAP_DEF_SIZE(__uint128_t, (1u << 31)) > ^ > /usr/local/include/google/protobuf/repeated_field.h:145:1: error: invalid > application of 'sizeof' to incomplete type 'google::protobuf::__uint128_t' > PROTO_MEMSWAP_DEF_SIZE(__uint128_t, (1u << 31)) > ^ > /usr/local/include/google/protobuf/repeated_field.h:145:1: error: invalid > application of 'sizeof' to incomplete type 'google::protobuf::__uint128_t' > PROTO_MEMSWAP_DEF_SIZE(__uint128_t, (1u << 31)) > ^ > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/7386a443-2954-41a8-9f78-bc92a49978dbn%40googlegroups.com.