From 625b9d5c6b718cdd9140cb5a911fbbd760ca2599 Mon Sep 17 00:00:00 2001 From: lichunjun Date: Mon, 18 Jul 2022 10:34:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3Ubuntu=2022.04=E4=B8=8A?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E4=B8=8D=E9=80=9A=E8=BF=87=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- http/common.h | 1 + network/byte_stream.h | 1 + util/argument_parser.h | 3 ++- util/async_pipe.h | 1 + util/state_machine.cpp | 1 + 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b3430b1..53115be 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ cpp\_tbox,全称: C++ Treasure Box,C++开发百宝箱,是基于事件的 | 库名 | 依赖模块 | 说明 | 安装方法 | |:----:|:--------:|:----:|:--------:| -| googletest | 所有模块 | 单元测试用,如果不进行单元测试可忽略 | apt install google-mock | -| libevent | event | 在event/config.mk中开启了WITH\_LIBEVENT时依赖 | apt install libevent-dev | -| libev | event | 在event/config.mk中开启了WITH\_LIBEV时依赖 | apt install libev-dev | -| mosquitto | mqtt | MQTT client库 | apt install libmosquitto-dev | -| nlohmann/json | main | 作为配置数据用 | 从github上下载json\_fwd.hpp与json.hpp 到头文件目录 | +| googletest | 所有模块 | 单元测试用,如果不进行单元测试可忽略 | sudo apt install google-mock | +| libevent | event | 在event/config.mk中开启了WITH\_LIBEVENT时依赖 | sudo apt install libevent-dev | +| libev | event | 在event/config.mk中开启了WITH\_LIBEV时依赖 | sudo apt install libev-dev | +| mosquitto | mqtt | MQTT client库 | sudo apt install libmosquitto-dev | +| nlohmann/json | main | 作为配置数据用 | 下载json\_fwd.hpp与json.hpp 到/usr/local/include/nlohmann/。[json\_fwd.hpp](https://raw.githubusercontent.com/nlohmann/json/v3.10.4/include/nlohmann/json_fwd.hpp), [json.hpp](https://raw.githubusercontent.com/nlohmann/json/v3.10.4/single_include/nlohmann/json.hpp) | **安装命令** diff --git a/http/common.h b/http/common.h index d2c2f8a..531e23a 100644 --- a/http/common.h +++ b/http/common.h @@ -1,6 +1,7 @@ #ifndef TBOX_HTTP_COMMON_H_20220501 #define TBOX_HTTP_COMMON_H_20220501 +#include #include #define CRLF "\r\n" diff --git a/network/byte_stream.h b/network/byte_stream.h index 61e701b..bca7e12 100644 --- a/network/byte_stream.h +++ b/network/byte_stream.h @@ -1,6 +1,7 @@ #ifndef TBOX_NETWORK_BYTE_STREAM_H_20171102 #define TBOX_NETWORK_BYTE_STREAM_H_20171102 +#include #include namespace tbox { diff --git a/util/argument_parser.h b/util/argument_parser.h index 458ded9..d7a7bab 100644 --- a/util/argument_parser.h +++ b/util/argument_parser.h @@ -40,8 +40,9 @@ #ifndef TBOX_UTIL_ARGUMENT_PARSER_H_20220105 #define TBOX_UTIL_ARGUMENT_PARSER_H_20220105 -#include +#include #include +#include namespace tbox { namespace util { diff --git a/util/async_pipe.h b/util/async_pipe.h index 2ba11e0..9d6e1d0 100644 --- a/util/async_pipe.h +++ b/util/async_pipe.h @@ -25,6 +25,7 @@ #ifndef TBOX_ASYNC_PIPLE_H_20211219 #define TBOX_ASYNC_PIPLE_H_20211219 +#include #include namespace tbox { diff --git a/util/state_machine.cpp b/util/state_machine.cpp index 7541f68..a83cb35 100644 --- a/util/state_machine.cpp +++ b/util/state_machine.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include namespace tbox { -- Gitee