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
本文共 232 字,大约阅读时间需要 1 分钟。
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
转载于:https://www.cnblogs.com/ssssdy/p/7347927.html