Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf-cpp: fix for MinGW and Clang on Windows #5877

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

Doekin
Copy link
Contributor

@Doekin Doekin commented Nov 30, 2024

  • Fixed undefined symbol: __start_pb_defaults when compiling with Clang (MinGW) on Windows by undefining PROTOBUF_DESCRIPTOR_WEAK_MESSAGES_ALLOWED. #16844
  • Fixed undefined symbol: pthread_setspecific by adding pthread to system link dependencies.

@Doekin Doekin force-pushed the protobuf-cpp-mingw-clang branch from a38808e to 2893b28 Compare November 30, 2024 15:06
@star-hengxing star-hengxing merged commit b276fea into xmake-io:dev Dec 1, 2024
67 checks passed
@Doekin Doekin deleted the protobuf-cpp-mingw-clang branch December 3, 2024 04:29
@tashcan
Copy link
Contributor

tashcan commented Dec 11, 2024

Of note, this breaks protobuf-cpp 3.19.4 with the following error on Windows error: cannot open file: src/google/protobuf/port_def.inc, Unknown Error (3)

@Doekin
Copy link
Contributor Author

Doekin commented Dec 11, 2024

Sorry, I didn’t notice. The issue occurs because we cd into the cmake directory.

@Doekin Doekin restored the protobuf-cpp-mingw-clang branch December 11, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants