Skip to content

基于VScode和C++实现Protobuf数据的通信(序列化和反序列化)

Notifications You must be signed in to change notification settings

18114447/Protobuf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

1、protobuf环境安装

源代码下载地址:https://github.com/protocolbuffers/protobuf/releases

tar zxvf protobuf-cpp-3.21.12.tar.gz 
cd protobuf-3.21.12/
./configure 
make
sudo make install

2、运行

cd test/
protoc ./person.proto --cpp_out=./
mkdir build
cd build/
cmake ..
make

```shell
cd ..
mkdir build
cd build/
cmake ..
make

测试结果

./protoMain

About

基于VScode和C++实现Protobuf数据的通信(序列化和反序列化)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published