add_person_cpp: add_person.cc protoc_middleman
- c++ add_person.cc addressbook.pb.cc -lprotobuf -o add_person_cpp
+ c++ add_person.cc addressbook.pb.cc -lprotobuf --o add_person_cpp
list_people_cpp: list_people.cc protoc_middleman
- c++ list_people.cc addressbook.pb.cc -lprotobuf -o list_people_cpp
+ c++ list_people.cc addressbook.pb.cc -lprotobuf --o list_people_cpp
javac_middleman: AddPerson.java ListPeople.java protoc_middleman
javac AddPerson.java ListPeople.java com/example/tutorial/AddressBookProtos.java
-If you only want to compile examples in one language, use "make cpp",
+If you only want to compile examples in one language, use "make cpp",
"make java", or "make python".
All of these programs simply take an address book file as their parameter.
These examples are part of the Protocol Buffers tutorial, located at:
+* Note that on some platforms you may have to edit the Makefile and remove
+"-lpthread" from the linker commands (perhaps replacing it with something else).
+We didn't do this automatically because we wanted to keep the example simple.