From 9b875d83ae9e7a0486469f0fb07fb36295c97e30 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Fri, 3 Apr 2015 11:33:17 +0900 Subject: [PATCH] Fixed page list up on the bottom. Fixed v1_1 --- v1_0_cpp_overview.md | 9 ++++-- v1_1_cpp_overview.md | 70 ++++++++++++++++++++++++++++++++------------ 2 files changed, 58 insertions(+), 21 deletions(-) diff --git a/v1_0_cpp_overview.md b/v1_0_cpp_overview.md index a62c70e..1b72146 100644 --- a/v1_0_cpp_overview.md +++ b/v1_0_cpp_overview.md @@ -90,7 +90,10 @@ sudo make install ## Users guide -* [configure](v1_0_cpp_configure) [pack](v1_0_cpp_packer) -* [unpack](v1_0_cpp_unpacker) [object](v1_0_cpp_object) -* [adaptor](v1_0_cpp_adaptor) [API versioning](v1_0_cpp_versioning) +* [configure](v1_0_cpp_configure) +* [pack](v1_0_cpp_packer) +* [unpack](v1_0_cpp_unpacker) +* [object](v1_0_cpp_object) +* [adaptor](v1_0_cpp_adaptor) +* [API versioning](v1_0_cpp_versioning) * zone diff --git a/v1_1_cpp_overview.md b/v1_1_cpp_overview.md index cde487d..75b57c4 100644 --- a/v1_1_cpp_overview.md +++ b/v1_1_cpp_overview.md @@ -1,21 +1,27 @@ -# msgpack-c This is a documentation of msgpack-c. This documentation -focuses on C++11 and C++03. +# msgpack-c This is a documentation of msgpack-c + +This documentation focuses on C++11 and C++03. ## How to use -``` git clone https://github.com/msgpack/msgpack-c.git cd msgpack-c +``` +git clone https://github.com/msgpack/msgpack-c.git cd msgpack-c ``` Add msgpack-c/include as an include path for your project. -``` g++ -Ipath_to_msgpack-c/include your_program.cpp ``` +``` +g++ -Ipath_to_msgpack-c/include your_program.cpp +``` ## C++11 support When you set the C++11 or later compiler option, msgpack-c enables C++11 functionalities. -``` g++ -std=c++11 -Ipath_to_msgpack-c/include your_program.cpp ``` +``` +g++ -std=c++11 -Ipath_to_msgpack-c/include your_program.cpp +``` ## Test and Install @@ -23,43 +29,71 @@ C++11 functionalities. #### Configure -``` cd msgpack-c ./bootstrap ./congigure ``` +``` +cd msgpack-c ./bootstrap ./congigure +``` If you want to test C++11 support, execute -``` ./congigure CXXFLAGS="-std=c++11" ``` +``` +./congigure CXXFLAGS="-std=c++11" +``` #### Build libraries for C. -``` make ``` +``` +make +``` #### Build and execute tests. -``` make check ``` +``` +make check +``` #### Install -``` sudo make install ``` +``` +sudo make install +``` -### Using cmake # Configure ``` cmake . ``` If you want to test C++11 -###support, execute ``` cmake -DMSGPACK_CXX11=ON . ``` +### Using cmake + +#### Configure +``` +cmake . +``` + +If you want to test C++11 support, execute +``` +cmake -DMSGPACK_CXX11=ON . +``` #### Build libraries for C and tests. -``` make ``` +``` +make +``` #### Execute tests. -``` make test ``` +``` +make test +``` #### Install -``` sudo make install ``` +``` +sudo make install +``` ## Users guide -* [configure](v1_0_cpp_configure) [pack](v1_1_cpp_packer) -* [unpack](v1_0_cpp_unpacker) [object](v1_1_cpp_object) -* [adaptor](v1_0_cpp_adaptor) [API versioning](v1_1_cpp_versioning) +* [configure](v1_1_cpp_configure) +* [pack](v1_1_cpp_packer) +* [unpack](v1_1_cpp_unpacker) +* [object](v1_1_cpp_object) +* [adaptor](v1_1_cpp_adaptor) +* [API versioning](v1_1_cpp_versioning) * zone