You are not logged in.

#1 2025-02-18 22:39:26

palatable
Member
Registered: 2025-02-05
Posts: 3

[SOLVED] Can't compile in c++ with protobuf

I couldn't compile my own c++ code that uses protobuf. I looked for a minmal example;
https://github.com/shaochuan/cmake-prot … ree/master
Removing the SET(CMAKE... line in CmakeLists.txt (as c++ version is too old), gives the following error

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../lib/libabsl_log_internal_check_op.so.2407.0.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

It seems to be some linking error, by I can not figure out what the issue might be. Running this code on a Linuxmint VM works without any issue.

Last edited by palatable (2025-02-19 18:16:47)

Offline

#2 2025-02-19 14:57:14

palatable
Member
Registered: 2025-02-05
Posts: 3

Re: [SOLVED] Can't compile in c++ with protobuf

Nvm, it was the protobuf version. 4+ gives some interesting linking error. I simply reverted back to v3.

Offline

#3 2025-02-19 15:59:53

seth
Member
Registered: 2012-09-03
Posts: 62,070

Re: [SOLVED] Can't compile in c++ with protobuf

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB