-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Duplicate target detected: struct #594
Comments
Each entity may only be declared once, such that there is one place where all links to it can go. |
Hi In my case, I want to show the comment of each struct members in different section, so I use doxygenstruct to display them. |
@AngusWooster Can you try using the I recall something something fairly recent with potential trouble (or perhaps just hackyness) related to the option. #356 may also be relevant. Still it's worth a try, might be just what you need in this specific case. It might also be useful to check other issues related to this, which are quite a lot: https://github.com/michaeljones/breathe/issues?q=is%3Aissue+duplicate |
Hi But it still show WARNING: Duplicate C++ declaration. .... Declaration is '.. cpp:struct:: sec_pal_fun'. They look like below in .rst file: .. doxygenstruct:: sec_pal_fun .. doxygenstruct:: sec_pal_fun Have any ideas can link to back to a same .. doxygenstruct:: , but you can get information about the different struct members in different section? |
@AngusWooster Unfortunately I don't know of a further solution, it has been some time since many improvements were made with the duplicate declarations but it still is not perfect. Ideally each directive on a specific target is only used once. For a practical workaround I can only suggest using some
Not entirely sure what you mean here, can you explain? |
As mentioned previously, there can be only one declaration of any entity, e.g., of .. doxygenstruct:: sec_pal_fun
:project: TEST
:members: pal_sec_init
.. cpp:alias:: sec_pal_fun
The second will then insert a link to the declaration of (with a bit of haxing with |
Hi In my C header file, there is a C structure and its members are function pointers. typedef struct sec_pal_fun { I want to show doxygen comment of each member in sphinx different section. |
I am sorry, I am unfamiliar with the syntax. Thanks you : ) |
We use shpinx with breath to document our c projects.
In the .rst , I use doxygenstruct to display the same struct documentation in different section.
I got many warning message shown as below.
WARNING: Duplicate ID: "structsec__pal__fun"
WARNING: Duplicate explicit target name: "structsec__pal__fun".
Have any methods to avoid showing those duplicate warning message?
The text was updated successfully, but these errors were encountered: