Skip to content

generating .pb.h files with cmake? #3265

Discussion options

You must be logged in to vote

Update, I got my code compiling, I still don't really understand what was going wrong. The only thing I changed from above is instead of having

    set(BUILD_SHARED_LIBS ON)

I set it to

    set(BUILD_SHARED_LIBS OFF)

The thing that clued me in to this might being the issue was the discussion here: abseil/abseil-cpp#125
which one of the maintainers of absl says:

"Unfortunately, Abseil has not been designed with use in dynamic libraries in mind (https://abseil.io/about/compatibility) and I don't know of a way to fix this issue in a way that's portable across all of the platforms that Abseil supports."

I'm not sure if that discussion is relevant, but if anyone else comes across this I figure…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Mizux
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3264 on April 26, 2022 19:50.