Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Doxygen:\xrefitem命令未按预期工作_Doxygen - Fatal编程技术网

Doxygen:\xrefitem命令未按预期工作

Doxygen:\xrefitem命令未按预期工作,doxygen,Doxygen,我尝试使用\xrefitem命令,如中所示 我的Test.h文件: /** @page my_errors My Errors * @brief Errors page * * Errors page contents. */ /** @error ERROR 101: in case a file can not be opened. Check about file system read/write access.*/ #define MY_ERR_CANNOT_OP

我尝试使用\xrefitem命令,如中所示

我的Test.h文件:

/** @page my_errors My Errors
 *  @brief Errors page
 *
 *  Errors page contents.
 */

/** @error ERROR 101: in case a file can not be opened.
    Check about file system read/write access.*/
#define MY_ERR_CANNOT_OPEN_FILE 101

/** \error ERROR 102: in case a file can not be closed.
    Check about file system read/write access. */
#define MY_ERR_CANNOT_CLOSE_FILE 102
并使用别名:

别名+=“错误=\xrefitem我的\u错误\”\“\”

将创建页面
My Errors
,但两个错误的文档不会显示在输出中。我必须添加一些设置吗


所有其他首选项都是默认设置。Doxygen版本为1.8.16

当使用页面顶部的注释
//\file
时,会显示“错误”。 虽然我得到了一个警告:

my_errors:1: warning: multiple use of page label 'my_errors', (other occurrence: .../aa.h, line: 4)
这不好,但不会破坏输出


编辑:我刚刚推送了一个关于警告的建议补丁到github()

Ok now define 1 works。但第二个仍然不是迪帕伊。我得到了错误:test.h:16:warning:documentation for unknown define MY_ERR_CANNOT_CLOSE_FILE found。当我使用1.8.16并将
///\FILE
放在测试的顶部时,我看到了这两个定义,它们的文档以及“定义”和“我的错误”页面上的文档。我忽略了什么吗?