forked from msgpack/msgpack-c
-
Notifications
You must be signed in to change notification settings - Fork 1
v2_0_cpp_overview
Takatoshi Kondo edited this page Mar 18, 2016
·
2 revisions
This is a documentation of msgpack-c
This documentation focuses on C++11 and C++03.
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
See MSGPACK_DISABLE_LEGACY_NIL
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 -DMSGPACK_DISABLE_LEGACY_CONVERT your_program.cpp
See MSGPACK_DISABLE_LEGACY_NIL and MSGPACK_DISABLE_LEGACY_CONVERT.
cd msgpack-c ./bootstrap ./configure
If you want to test C++11 support, execute
./configure CXXFLAGS="-std=c++11"
make
make check
sudo make install
cmake .
If you want to test C++11 support, execute
cmake -DMSGPACK_CXX11=ON .
make
make test
sudo make install