Additional Include Directories for ASM

Sysprogs forums Forums VisualGDB Additional Include Directories for ASM

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27938
    isigor
    Participant

    I’m using VisualGDB with IAR in project which is using FreeRTOS, the problem is “portasm.s” is an assembly file which includes “FreeRTOSConfig.h” file

    In IAR this issue resolved by Selecting Assembler->Preprocessor->Additional include directories->Path to in which “FreeRTOSConfig.h” file exists and everything compiles well

    In VisualGDB there no such option, only for C/C++

    I know there is workaround for setting relative path like “../FreeRTOSConfig.h” but then in IAR IDE it won’t recognize it. I’m often switching between the two IDE’s.

    Any help will appreciated 🙂

    Best regards,

    Igor

    #27939
    support
    Keymaster

    Hi,

    VisualGDB would normally apply the regular C/C++ include directories and preprocessor macros to assembly files as well. If you want to add the include directory only to assembly files, you can instead add -I<directory> to Configuration Properties -> C/C++ -> Assembler -> Additional Assembly Flags.

    If it doesn’t work, please let us know what exactly you added in the settings and whether any similar directories are listed in the VisualGDB\Debug\<assembly file>.gcc.rsp file (that should contain all command-line flags passed to the assembler).

    #27981
    isigor
    Participant

    Thanks, that worked 🙂

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