Hi,

Im trying to build an example protoc plugin... the abseil dependencies are 
a nightmare. (link order).

How do I build the example protocol buffer plugin? I need the link order 
for the abseil libs... here....

g++ -I../protobuf/third_party/abseil-cpp -I../protobuf/src/     ./my_prot
oc_plugin.cc -o my_protoc_plugin  ../protobuf/build/libprotoc.a 
 ../protobuf/build/libprotobuf.a  abseil/libabsl_base.a
abseil/libabsl_strings.a abseil/libabsl_flags_internal.a 
abseil/libabsl_hash.a      -ldl -lpthread


Chasing these down (adding various abseil static libs) ... just takes me 
down a rabbit hole.

What the exact link order to use abseil static libs protoc plugin (please 
dont say bezel) I need the command line and link order for the static libs. 


/usr/bin/ld: /tmp/cco7kRJk.o: in function 
`absl::lts_20240116::container_internal::EmptyGroup()':
my_protoc_plugin.cc:(.text._ZN4absl12lts_2024011618container_internal10EmptyGroupEv[_ZN4absl12lts_2024011618container_internal10EmptyGroupEv]+0xb):
 
undefined reference to `absl::lts_20240116::container_internal::kEmptyGroup'
/usr/bin/ld: /tmp/cco7kRJk.o: in function 
`absl::lts_20240116::container_internal::AssertIsFull(absl::lts_20240116::container_internal::ctrl_t
 
const*, unsigned char, unsigned char const*, char const*)':
my_protoc_plugin.cc:(.text._ZN4absl12lts_2024011618container_internal12AssertIsFullEPKNS1_6ctrl_tEhPKhPKc[_ZN4absl12lts_2024011618container_internal12AssertIsFullEPKNS1_6ctrl_tEhPKhPKc]+0x70):
 
undefined reference to 
`absl::lts_20240116::raw_log_internal::RawLog(absl::lts_20240116::LogSeverity, 
char const*, int, char const*, ...)'
/usr/bin/ld: 
my_protoc_plugin.cc:(.text._ZN4absl12lts_2024011618container_internal12AssertIsFullE

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/1c63b840-8d61-4e7a-b9aa-7ceb40e0e3a8n%40googlegroups.com.

Reply via email to