编译陈硕的muduo出现了问题 小白实在看不懂啊

叶树 叶树 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
[ 21%] Building CXX object muduo/base/tests/CMakeFiles/singleton_test.dir/Singleton_test.cc.o
In file included from /home/wuliande/1/muduo/muduo/base/tests/Singleton_test.cc:1:0:
/home/wuliande/1/muduo/muduo/base/Singleton.h: In static member function ‘static void muduo::Singleton<T>::destroy()’:
/home/wuliande/1/muduo/muduo/base/Singleton.h:38:18: 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) == 0 ? -1 : 1];
^
cc1plus: all warnings being treated as errors
make[2]: *** [muduo/base/tests/CMakeFiles/singleton_test.dir/Singleton_test.cc.o] 错误 1
make[1]: *** [muduo/base/tests/CMakeFiles/singleton_test.dir/all] 错误 2
make: *** [all] 错误 2
+ cd /home/wuliande/1/muduo
+ doxygen
Warning: Tag `SYMBOL_CACHE_SIZE' at line 289 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 477 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 803 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `USE_INLINE_TREES' at line 956 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: doxygen no longer ships with the FreeSans font.
You may want to clear or change DOT_FONTNAME.
Otherwise you run the risk that the wrong font is being used for dot generated graphs.
/home/wuliande/1/muduo/muduo/base/FileUtil.cc:127: warning: no matching file member found for
template int muduo::FileUtil::readFile(muduo::StringPiece filename, int maxSize, __gnu_cxx::__sso_string *content, int64_t *, int64_t *, int64_t *)
Possible candidates:
'string readFile(const char *filename)' at line 13 of file/home/wuliande/1/muduo/examples/filetransfer/download.cc
'int readFile(StringPiece filename, int maxSize, String *content, int64_t *fileSize=NULL, int64_t *modifyTime=NULL, int64_t *createTime=NULL)' at line 53 of file/home/wuliande/1/muduo/muduo/base/FileUtil.h

/home/wuliande/1/muduo/muduo/base/FileUtil.cc:138: warning: no matching file member found for
template int muduo::FileUtil::readFile(muduo::StringPiece filename, int maxSize, std::string *content, int64_t *, int64_t *, int64_t *)
Possible candidates:
'string readFile(const char *filename)' at line 13 of file/home/wuliande/1/muduo/examples/filetransfer/download.cc
'int readFile(StringPiece filename, int maxSize, String *content, int64_t *fileSize=NULL, int64_t *modifyTime=NULL, int64_t *createTime=NULL)' at line 53 of file/home/wuliande/1/muduo/muduo/base/FileUtil.h

warning: Included by graph for 'Logging.h' not generated, too many nodes. Consider increasing DOT_GRAPH_MAX_NODES.
warning: Included by graph for 'EventLoop.h' not generated, too many nodes. Consider increasing DOT_GRAPH_MAX_NODES.
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
叶树
其它技术问题 3,881 成员 9,044 内容