none
Figure out: Which #include<file> the symbol comes from??

    Question

  • I have file.cpp:

    #include "file1.h"

    #include "file2.h"

    .....

    Symbol  var;

    And I know that "Symbol" is defined in Smbol.h but how to figure out where it comes from to file.cpp?

    Is there Visual Studio or VisuslAssist solution?

    Thank you! 


    Friday, January 13, 2017 2:20 PM

All replies

  • >And I know that "Symbol" is defined in Smbol.h but how to figure out where it comes from to file.cpp?

    Check out the compiler showIncludes option
    https://msdn.microsoft.com/en-us/library/hdkef6tk.aspx

    Dave

    Friday, January 13, 2017 3:48 PM
  • Thanks Dave.

    Hi Ivan Kharpalev,

    Welcome to the MSDN forum.

    You can have a try with the compiler option 'showIncludes' to output a list of the include files. If we have any misunderstand, please feel free to let me know.

    BTW, if you think Dave's reply is helpful for your question, please mark it as answer, that will help other community members who have the same or similar issue to easier search this useful information, thank you for your understanding.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, January 16, 2017 6:35 AM
    Moderator