随笔分类 - muduo
摘要:1、我们在写类的时候一般通常将声明放到.h文件,函数实现放入.cpp,如下: //.h class Mystring{ public: Mystring(const char* str = "empty"); Mystring(const char* data, int len); ... ...
阅读全文
摘要:CMake Error:源“/home/***/***/***/CMakeLists.txt”与用于生成缓存的源“/home/***/***/CMakeLists.txt”不匹配。使用其他源目录重新运行cmake。 这是因为:每次cmake编译都会生成缓存文件,目录更改之后CMakeLists.tx
阅读全文
摘要:error: typedef ‘T_must_be_complete_type’ locally defined but not used [-Werror=unused-local-typedefs] typedef char T_must_be_complete_type[sizeof(T) =
阅读全文
摘要:linux下muduo安装包的下载 安装包下载https://share.weiyun.com/53pjA16 安装包下载https://share.weiyun.com/53pjA16 仅供参考 1.muduo采用CMake编译,首先安装CMake: $ sudo apt-get install
阅读全文

浙公网安备 33010602011771号