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

  • SEARCH
  • Home
  • 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 6935119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:03:37+00:00 2026-05-27T12:03:37+00:00

Possible Duplicate: C/C++ source file after preprocessing The other day, I was assigned a

  • 0

Possible Duplicate:
C/C++ source file after preprocessing

The other day, I was assigned a task to fix a bug in a large C/C++ project developed under VC++ 8. The problem is that this code is really full of nested macros. What is the best way to understand this code? Any suggestion is appreciated.

  • 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-27T12:03:38+00:00Added an answer on May 27, 2026 at 12:03 pm

    By using the compiler line option /E the build will output all of the preprocessor output to standard out. This file will include all the macros expanded along with all of the includes expanded inline. You’ll need to figure out the best way to add this flag depending on how you build your project. With the output you can better see what the macro’s are expanding too, but it still can be tricky to trace the output back to which macro expanded it. However, you should be able to figure that out. Reference for the command line options for VS8.0 compiler.

    As pointed out in the comments, this is a duplicate and here is the better answer: https://stackoverflow.com/a/277362/192896

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

Sidebar

Related Questions

Possible Duplicate: git - removing a file from source control (but not from the
Possible Duplicate: Do you know tool building tree of include files in project\file? Currently
Possible Duplicate: git - removing a file from source control (but not from the
Possible Duplicate: Source code for java array There is a Java source file for
Possible Duplicate: Is there a shortcut to move between header and source file in
Possible duplicate What is the best open source example of a lightweight Windows Application?
Possible Duplicate: Open source iPhone Coverflow like library hello all i want to develop
Possible Duplicate: How to open-source an application that uses API keys I have an
Possible Duplicate: What is an MDF file What is the purpose of the mdf
Possible Duplicate: Why can templates only be implemented in the header file? Undefined reference

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.