I will develop a web site using C++. I need a compiler for generating C++ codes from group.proto file.
A standard protocol buffer from google will be installed. I didn't describe how to install this here. Please refer to the official site:
http://code.google.com/p/protobuf/
Create a build.sh file under proto folder. Add some scripts into it.
rm output/js/*
rm output/c++/*
protoc --proto_path=./input --cpp_out=./output/c++ ./input/group.proto
pbj input/group.proto output/js/group.js
chmod +x ./build.sh
Now execute build.sh, you will see C++ and JavaScript files are both generated.
proto/
├── build.sh
├── input
│ └── group.proto
└── output
├── c++
│ ├── group.pb.cc
│ └── group.pb.h
└── js
└── group.js
4 directories, 5 files
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
-
▼
2012
(15)
-
▼
August
(14)
- Try protojs serials : B. support C++
- Try protojs serials : A. install
- Nginx with basic authentication
- Flexigrid example two:in-place editor
- Flexigrid example one: load data without binding s...
- Installing Jenkins plugin manually
- Upgrade Jenkins on Ubuntu12.04
- Setup Ubuntu Cloud in VirtualBox:3.Add node server
- Setup Ubuntu Cloud in VirtualBox:2.Install MAAS se...
- Setup Ubuntu Cloud in VirtualBox:1.Create VirtualB...
- Cross GFW with Chrome
- To cross GFW using SSH
- China Merchants Bank Professional Edition with Vir...
- Emacs usage
-
▼
August
(14)
No comments:
Post a Comment