Error: Macro names Must Be Identifiers with -std=c++11

Sysprogs forums Forums VisualGDB Error: Macro names Must Be Identifiers with -std=c++11

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8169
    dmitryponv
    Participant

    Good afternoon,

    I have been running adding -std=c++11 to the pre-processor macros for a project and it has never had any issues building.

    I reinstalled Visual Studio 2013 and downloaded latest VisualGDB yesterday, at it began complaining about -std=c++11 macro with an error: Error: Macro names Must Be Identifiers

    Has anything changed? Is there a different way to add this to the project?

    If I remove the “-” sign, I can compile, but it complains there is no C++11 support and spits out errors for C++11 specific items.

    Note: I checked that the “-” hasn’t been changed to the long “–” like MS word usually does with autocorrect.

    Thanks,.
    -D

    #8171
    support
    Keymaster

    Hi,

    The -std=c++11 is a compiler option, not a preprocessor macro. Please add it to CXXFLAGS instead and everything should work.

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