linux gcc编译protocol

gcc -c test.pb-c.c//生成test.pb-c.o文件

gcc -c udp_socket_server.c//生成udp_socket_server.o

gcc -o test1 udp_socket_server.o test.pb-c.o -lprotobuf-c

./test1

protoc-c --c_out=./ test.proto

posted @ 2017-08-11 20:54  ssssdy  阅读(248)  评论(0编辑  收藏  举报