Documentation “如何避免使用强氧剂”;此行有多个标记”;

Documentation “如何避免使用强氧剂”;此行有多个标记”;,documentation,doxygen,Documentation,Doxygen,我有两个同名的文件,但在两个不同的目录中 graphic_test ---semLib.c | | -- vxWorksApi---semLib.c 我想用Doxygen构建一个Html。这是文件semLib.c的头 /** * @file semLib.c */ 我收到了这个信息 Multiple markers at this line - the name `semL

我有两个同名的文件,但在两个不同的目录中

 graphic_test ---semLib.c
               |
               |
               -- vxWorksApi---semLib.c
我想用Doxygen构建一个Html。这是文件semLib.c的头

 /**
 * @file    semLib.c
*/
我收到了这个信息

 Multiple markers at this line
        - the name `semLib.c' supplied as the second argument in the \file statement matches the following input files: /home/linuxdev/
         Linux_Development_Workspace/graphic_tests/graphic_test/semLib.c /home/linuxdev/Linux_Development_Workspace/graphic_tests/vxWorksApi/semLib.c
        - Line breakpoint: semLib.c [line: 2]
我怎样才能避免这种情况呢?

(我的重点):

\file

指示注释块包含名为
的源文件或头文件的文档如果文件名本身不是唯一的,则文件名可能包括(部分)路径。


因此,请尝试在适当的文件中使用
\file semLib.c
\file vxWorksApi/semLib.c

我遇到了同样的问题,进行上述更改仍然不起作用: “因此,请尝试在适当的文件中使用\file semLib.c和\file vxWorksApi/semLib.c。”

我的情况有所不同,因为这些文件位于单独但并行的文件夹中,这对我很有用: \文件xdir/semLib.c和\文件ydir/semLib.c在适当的文件中

出于您的目的,请尝试为以下两者添加完整路径或部分路径:
\文件adir/xdir/semLib.c和\file adir/ydir/semLib.c在适当的文件中。

这两个“semLib.c”有相同的内容吗?@PascalLécuyot没有,第二个甚至没有doxygen注释。你可以尝试在每个文件的顶部有
*\file
而不是
*@file semLib.c
,即去掉文件名,看看这是否有区别?这是什么方式不起作用-你能更具体一点吗?也许可以更新您的问题,以包括您尝试此建议时产生的任何错误。请原谅我的错误。这是和以前一样的行为