Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
e21c5734
Commit
e21c5734
authored
May 06, 2009
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure examples link properly.
parent
63e646b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Makefile
examples/Makefile
+2
-2
README.txt
examples/README.txt
+5
-1
No files found.
examples/Makefile
View file @
e21c5734
...
...
@@ -22,10 +22,10 @@ protoc_middleman: addressbook.proto
@
touch
protoc_middleman
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
-
lpthread
-
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
-
lpthread
-
o
list_people_cpp
javac_middleman
:
AddPerson.java ListPeople.java protoc_middleman
javac AddPerson.java ListPeople.java com/example/tutorial/AddressBookProtos.java
...
...
examples/README.txt
View file @
e21c5734
...
...
@@ -15,7 +15,7 @@ creates the following executable files in the current directory:
add_person_java list_people_java
add_person_python list_people_python
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.
...
...
@@ -23,3 +23,7 @@ The add_person programs will create the file if it doesn't already exist.
These examples are part of the Protocol Buffers tutorial, located at:
http://code.google.com/apis/protocolbuffers/docs/tutorials.html
* 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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment