diff --git a/README.md b/README.md index b3430b1a70d93ebee9add89287fd1eaf0203f25e..53115becbc7fa962391d5489670ac61b94b5fb82 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 d2c2f8a79698bd6c7ba4f07dc9e5600708c17d0a..531e23a2ec49a3d8f47b68dfcbc2d80c2a51e5bf 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 61e701be0f9f7130170bd79a72d114666b9f3976..bca7e12f8f04523c8ad40a7649d73ae7a235e4c7 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 458ded942a371d830affad4ca4fd421acbc0ae71..d7a7babcbc93366a14c01028ef561bfb0fc74c51 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 2ba11e0d4dfe5eafa09eff202a6d37e0b1614285..9d6e1d074a68726969c7acb7d4e79483fa0e0c68 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 7541f6871dce342c9e921ea0f0f9b45118c914e5..a83cb35a891be0b188de541ec3809037849d7ce7 100644 --- a/util/state_machine.cpp +++ b/util/state_machine.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include namespace tbox {