是否有一种模式可以使用协议缓冲区而不针对LibProtobuf链接

Is there a mode in which protocol buffers can be used without linking against libprotobuf?

本文关键字:缓冲区 协议 链接 LibProtobuf 可以使 模式 一种 是否      更新时间:2023-10-16

我希望能够在用户加载的动态C 模块中使用协议缓冲器,但不需要该用户也安装了libprotobuf。

目前,我正在考虑搬到Flatbuffers,通过仅标头解决方案提供此类模式。

协议缓冲区是否存在这种方法?

是的,您只需要在协议缓冲区库中静态链接到.dll