Takatoshi Kondo 2014-04-24 22:39:01 +00:00
parent 731bc643d0
commit 1dac3f890a

View File

@ -94,15 +94,17 @@ You can build using command line as follows:
Include `msgpack.hpp` (or `msgpack.h` for C) in your application and link with libmsgpack. Here is a typical gcc link command: Include `msgpack.hpp` (or `msgpack.h` for C) in your application and link with libmsgpack. Here is a typical gcc link command:
gcc -lmsgpack myapp.c -o myapp g++ -lmsgpack myapp.c -o myapp
### Code Example ### Code Example
```CPP ```CPP
#include <msgpack.hpp> #include <msgpack.hpp>
#include <vector> #include <vector>
#include <string>
#include <iostream>
int main(void) { int main() {
// This is target object. // This is target object.
std::vector<std::string> target; std::vector<std::string> target;
target.push_back("Hello,"); target.push_back("Hello,");