Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6029065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:49:53+00:00 2026-05-23T04:49:53+00:00

I need some basic help using Doxygen on C code. All basic docs are

  • 0

I need some basic help using Doxygen on C code. All basic docs are coming out fine, and I want help structuring the big long long list of files and functions.

I have a C source tree which looks like this:

src/
 +--util/
    +--file1.h
    +--file1.c
    +--file2.h
    +--file2.c
 +--stats/
    +--file3.h
 +--etc/

Very standard. Currently doxygen generates a flat file list of all files. We refer to each dub-dir of src/ as a ‘module’, and so documenting this seems like a nice fit for Doxygen modules/groups.

How exactly should I use the grouping commands to mirror the directory structure above? I want to have a module util in the generated docs which links to the file1 and file2 docs. Exactly like JavaDoc would treat a package.

Adding the /addtogroup util & @{ tags to each header file generated a mini-site with a flattened list of all data-structures etc within all the headers, which isn’t what I expected or wanted. Perhaps this is what doxygen groups are supposed to do though, ie, document an API uniformly when the code is implemented across multiple files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:49:54+00:00Added an answer on May 23, 2026 at 4:49 am

    A simpler option to using modules is to use @page and @subpage. To get something similar to your described layout you could use the following:

    @page util Util
    This page describes util module.
    @subpage file1
    @subpage file2
    
    @page stats Stats
    This page describes stats module.
    @subpage file3
    
    @page etc
    Blah blah blah
    
    @page file1 File 1
    This is file 1.
    
    @page file2 File 2
    This is file 2.
    
    @page file3 File 3
    This is file 3.
    

    These comments can of course be contained in one file or many. Typically I’d put the @page file1 in file1.h, @page file2 in file2.h, etc, and the @subpage comments in a more top-level header or main source file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some help from the shell-script gurus out there. I have a .txt
I'm trying to implement some basic entities using Hibernate/JPA. Initially the code was deployed
Im new to python programming and need some help with some basic file I/O
I need some basic CMS functionality with rich text editing. On stack overflow there
I would need some basic vector mathematics constructs in an application. Dot product, cross
I need a basic pdf generator that'll let me toss some images and text
We need some input on what is a good design pattern on using AJAX
I need some information about localization. I am using .net 2.0 with C# 2.0
Need some help with this problem in implementing with XSLT, I had already implemented
I need some help with what is probably a newbie question in terms of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.