安装doxygen和graphviz
执行命令:doxygen -g Doxygen.config
对Doxygen.config编辑,并保持
PROJECT_NAME = "My Project" OUTPUT_DIRECTORY = doc INPUT = path/to/source/files RECURSIVE = YES GENERATE_LATEX = NO GENERATE_HTML = YES HAVE_DOT = YES CLASS_DIAGRAMS = YES HIDE_UNDOC_RELATIONS = YES
执行命令:dot -Tpng InputFile.dot -o OutputFile.png