
protobuf3
明夷TEC
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
protobuf应用-(3).proto文件和存取数据
1.proto数据结构syntax = "proto3";message Account { //账号 uint64 ID = 1; //名字 string name = 2; //密码 string password = 3;}2.存取数据#include <iostream>#include <cstring>#include "accou...原创 2020-04-01 02:36:56 · 1288 阅读 · 0 评论 -
protobuf3.4-(2)程序终端编译报错( 未定义的引用undefined reference )
1.编译报错不正确编译$ g++ -o main account.cpp …/protobuf/build/libprotobuf-lite.a/tmp/ccOySh1U.o:在函数‘main’中:account.cpp:(.text+0x26):对‘Account::Account()’未定义的引用/tmp/ccbZPZqN.o:在函数‘protobuf_account_2epro...原创 2020-04-01 02:19:03 · 2359 阅读 · 0 评论