c++11sublimetext3sublimelinter

SublimeLinter with C++11


I've started using Sublime Text 3 as my code editor for C++ and I installed some additional packages, two of which being SublimeLinter and SublimeLinter-contrib-clang. Everything seems to be working fine, except that it looks like there is no support for C++11 in the linter.

enter image description here

Do you know how I could change that to work with C++11?


Solution

  • For anybody with the same problem:

    The solution is to go to Preferences -> Package Settings -> SulbimeLinter -> Settings Default.

    There you need to paste the following:

        "linters":
        {
            "clang": {
                "extra_flags": "-std=c++11"
            }
        },
    

    somewhere in the "default" namespace. At least that worked for me.

    Cheers!