Intellisense – Unrecognized type H file inside H file

Sysprogs forums Forums VisualGDB Intellisense – Unrecognized type H file inside H file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35460
    BoazMegg
    Participant

    STM32 project (Mx cube), C language.

    An H file that has structs defined with a type defined on another H file.

    Intellisense shows ‘unrecognized type’ although both files are then included by the C (or another H file).

    The only solution is the re-include the first file on the second one.

    Is there another option so intellisense won’t show such errors/warnings (i.e. will show the type as defined as it is defined on the project)?

     

     

    #35461
    support
    Keymaster

    Hi,

    Normally the first header file should just include the second one. As long as both header files have a #pragma once, it should work just fine.

    Another option would be to explicitly open the header file in a context of a .c/.cpp file that includes both of them in the correct order. You can do it via the navigation bar in the new VisualGDB 6.0.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.