mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00
This commit is contained in:
parent
731bc643d0
commit
1dac3f890a
@ -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,");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user