1. 官网下载 cpp-netlib-0.12.0-final.zip;
2. 编译 cpp-netlib-0.12.0-fina;
2.1 修改build.sh如下:
-DBOOST_INCLUDEDIR="../boost_1_66_0" \
-DBOOST_LIBRARYDIR="../boost_1_66_0/stage/lib" \
2.2 运行build.sh
3. 编译hello_world_server例子;
g++ -DASIO_HEADER_ONLY -DBOOST_TEST_DYN_LINK -std=c++11 -Wall -std=c++11 -I/home/keric/opensource/boost_1_66_0 -I/home/keric/opensource/cpp-netlib-0.12.0-final/deps/asio/asio/include -I/home/keric/opensource/cpp-netlib-0.12.0-final -I/home/keric/opensource/cpp-netlib-0.12.0-final/deps/cxxopts/src -o hello_world_server hello_world_server.cpp -rdynamic -lpthread -lcppnetlib-server-parsers -lrt -L ../../../../build/libs/network/src/