需要在没有 pthread 的实时操作系统上使用协议缓冲区。我能够以这种方式静态链接 protobuf
g++ -g -Wall example.pb.cc example.cc -o example -static -lprotobuf -lpthread
但是,如果没有 pthread,我会收到链接错误。是否可以将 protobuf 配置为在没有 pthread 的情况下工作?
需要在没有 pthread 的实时操作系统上使用协议缓冲区。我能够以这种方式静态链接 protobuf
g++ -g -Wall example.pb.cc example.cc -o example -static -lprotobuf -lpthread
但是,如果没有 pthread,我会收到链接错误。是否可以将 protobuf 配置为在没有 pthread 的情况下工作?