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 9004473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:54:14+00:00 2026-06-16T00:54:14+00:00

Is there a way to list, in a c++ program or a c# program,

  • 0

Is there a way to list, in a c++ program or a c# program, all the header files used by another c++ file (either dot.h or dot.cpp) ?

I found this question:
Is there a way to programmically traverse header files?

Its answer seems to be exactly what I am looking for – except for the fact that I am using Windows (Visual Studio 2010).

I would like to be able to use something like the gcc -M -MM -MF options (to get a list of dependencies, or at least header files, preferably with absolute path).

The alternative, parsing the files to find the #include pattern, is fairly uncertain; not to mention additional tasks to properly identify the files… So if there was a tool that could actually do this, it would be perfectly wonderful.

Is there any Windows (programming) c++ or c# command, or pre-processor command, that can list all the header files, or all the dependencies, of a program/ file (header or implementation, since sometimes include directives can exist in implementation files too) ?

  • 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-06-16T00:54:15+00:00Added an answer on June 16, 2026 at 12:54 am

    I have considered VCCodeModel, but had a bit of trouble with it, so I ended up parsing the c++ files – it is a work in progress, since I am still looking for their dependencies, and it is very hard to find the absolute path names based only on the #include directories.

    Will change my answer if I find a better option, or if anyone suggests one.

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

Sidebar

Related Questions

is there a way with windows command line to list all the files from
Is there a way to list/browse all ActiveX controls in the system or for
Is there a way to list all the loaded modules using gdb, just like
Is there any way to review list of conflicts (names of conflicting files and
Is there a way to show the file count without listing the files? I
Is there a way to view a list of all of my variables in
I'm trying to create a program that reads this text file with a list
Is there a way to list methods in a Java class using the JNI
Is there a better way to list counter properties for a particular process: $pids
Is there an easy way to list only directories under a given directory in

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.