Skip to content

Instantly share code, notes, and snippets.

@MizukiSonoko
Created April 18, 2017 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MizukiSonoko/db35f55e7c1f7fd6c2e64d8f0d916372 to your computer and use it in GitHub Desktop.
Save MizukiSonoko/db35f55e7c1f7fd6c2e64d8f0d916372 to your computer and use it in GitHub Desktop.
cd path/to/flatbuffers;
cd grpc;
flatc --cpp --grpc ../tests/monster_test.fbs;
rm monster_test_generated.h; # to include flatbuffers/tests/monster_test_generated.h
g++ -std=c++14 -Wl,-no-as-needed -lgrpc -lgrpc++ -lgpr -pthread tests/grpctest.cpp monster_test.grpc.fb.cc -I../tests/ -o grpctest;
./grpctest;
# and
valgrind ./grpctest;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment