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