fix(example): c++14 limitation

fix the bug: ‘std::string_view’ is only available from C++17 onwards
pull/19292/head
Kaikai 4 months ago committed by GitHub
parent eeba9e65f5
commit ee276ffd0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      examples/Makefile

@ -46,11 +46,11 @@ protoc_middleman_ruby: addressbook.proto
add_person_cpp: add_person.cc protoc_middleman
pkg-config --cflags protobuf # fails if protobuf is not installed
c++ -std=c++14 add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf`
c++ add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf`
list_people_cpp: list_people.cc protoc_middleman
pkg-config --cflags protobuf # fails if protobuf is not installed
c++ -std=c++14 list_people.cc addressbook.pb.cc -o list_people_cpp `pkg-config --cflags --libs protobuf`
c++ list_people.cc addressbook.pb.cc -o list_people_cpp `pkg-config --cflags --libs protobuf`
add_person_dart: add_person.dart protoc_middleman_dart

Loading…
Cancel
Save