# Official tutorial https://grpc.io/docs/languages/cpp/quickstart/
# mac compilation problems
“C++ versions less than C++11 are not supported.”
“`
# mac compilation problems
“C++ versions less than C++11 are not supported.”
“`
# You need to add -DCMAKE_CXX_STANDARD=11 when compiling abseil, otherwise it will compile with an error
$ mkdir -p third_party/abseil-cpp/cmake/build
$ pushd third_party/abseil-cpp/cmake/build
$ cmake -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
-DCMAKE_CXX_STANDARD=11 \
../..
$ make -j
$ make install
$ popd
“